This commit is contained in:
2018-12-29 21:26:11 -06:00
parent a017ac03ee
commit 0d7f2b7523

View File

@@ -15,6 +15,7 @@ use App\Models\Market\MonthlyMarketTax;
use App\Models\ScheduledTask\ScheduleJob;
use App\Models\Finances\CorpMarketJournal;
use App\Models\Corporation\CorpStructure;
use App\Models\Character\CharacterToCorporation;
@@ -83,12 +84,15 @@ class CalculateMarketTax extends Command
//Get the info about the structures from the database
$info = CorpStructure::where(['corporation_id' => $corp->corporation_id])->first();
$character = UserToCorporation::where(['character_id' => $info->character_id])->first();
//Store the value in the database
$bill = new MonthlyMarketTax;
$bill->character_id = $info->character_id;
$bill->character_name = $info->character_name;
$bill->character_name = $character->character_name;
$bill->corporation_id = $corp->corporation_id;
$bill->corporation_name = $info->corporation_name;
$bill->corporation_name = $character->corporation_name;
$bill->tax_owed = $finalTaxes;
$bill->month = $start->month;
$bill->year = $start->year;