mailer
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user