This commit is contained in:
2018-12-29 21:45:45 -06:00
parent 63a4419c3d
commit 94f80c27c7
@@ -70,17 +70,12 @@ class CalculateMarketTax extends Command
$corps = CorpStructure::select('corporation_id')->groupBy('corporation_id')->get();
$this->line('Got all of the corps with markets.' . sizeof($corps));
foreach($corps as $corp) {
$this->line('Entered foreach loop');
$finalTaxes = $sHelper->GetTaxes($corp->corporation_id, 'Market', $start, $end);
var_dump($finalTaxes);
$this->line('Received final taxes');
if($finalTaxes < 0.00) {
$finalTaxes = 0.00;
}
$this->line('Checked for negative number.');
$finalTaxes = number_format($finalTaxes, 2, '.', ',');
$this->line('Final Taxes are: ' . $finalTaxes);
//Get the info about the structures from the database
$info = CorpStructure::where(['corporation_id' => $corp->corporation_id])->first();