mail and market tax structure

This commit is contained in:
2018-12-08 04:25:59 -06:00
parent 417a1218d5
commit e54b2abed1
9 changed files with 209 additions and 8 deletions

View File

@@ -47,10 +47,12 @@ class StructureController extends Controller
//Get the number of structures registered to a corporation
$citadelCount = CorpStructure::where(['corporation_id' => $corpId, 'structure_type' => 'Citadel'])->count();
dd($citadelCount);
//Get the market taxes for this month from the database
$tempMonthTaxesMarket = CorpJournal::where(['ref_type' => 'brokers_fee', 'corporation_id' => $corpId])
->whereBetween('date', [$start, $end])
->sum('amount');
//Get the market taxes from last month from the database
$tempLastTaxesMarket = CorpJournal::where(['ref_type' => 'brokers_fee', 'corporation_id' => $corpId])
->whereBetween('date', [$startLast, $endLast])
->sum('amount');