update structuretaxhelper

This commit is contained in:
2019-02-13 22:23:37 -06:00
parent 84c95cb507
commit ebae52069c
3 changed files with 3 additions and 10 deletions

View File

@@ -99,7 +99,6 @@ class CalculateMarketTax extends Command
SendEveMail::dispatch($mail)->delay(Carbon::now()->addSeconds(15));
}
//Mark the job as finished
$task->SetStopStatus();
}

View File

@@ -15,7 +15,6 @@ class Kernel extends ConsoleKernel
protected $commands = [
Commands\CorpJournal::class,
Commands\GetCorps::class,
Commands\SendMail::class,
Commands\UpdateMoonPricing::class,
Commands\CalculateMarketTax::class,
Commands\holdingfinances::class,

View File

@@ -37,14 +37,9 @@ class StructureTaxHelper {
//Calculate the fuel cost for one type of structure
$fuelCost = $this->CalculateFuelBlockCost($refType);
//Calculate the average tax for a given structure type
$tax = $this->GetStructureTax($corpId, $refType);
//Calculate the tax ratio to later be divided against the tax to find the
//actual tax owed to the alliance. Revenue will be a separate function
//$ratio = $this->CalculateTaxRatio($corpId, $tax, $refType);
//Get the ratio from the table
//Get the ratio from the table to be divided against the tax to find the
//acutal tax owed to the alliance. Revenue will be a separate function
$ratio = CorpTaxRatio::where([
'corporation_id' => $corpId,
'structure_type' => $refType,