From e2edfa536bbebec430ec6625525c46005db66f8c Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 7 Dec 2018 03:29:37 -0600 Subject: [PATCH] StructureController --- app/Http/Controllers/StructureController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/StructureController.php b/app/Http/Controllers/StructureController.php index c1ce8e162..df02cbb85 100644 --- a/app/Http/Controllers/StructureController.php +++ b/app/Http/Controllers/StructureController.php @@ -60,16 +60,16 @@ class StructureController extends Controller $monthTaxesMarket = CorpJournal::where(['ref_type' => 'brokers_fee', 'corporation_id' => $corpId]) ->whereBetween('date', [$start, $end]) - ->sum(); + ->sum('amount'); $lastTaxesMarket = CorpJournal::where(['ref_type' => 'brokers_fee', 'corporation_id' => $corpId]) ->whereBetween('date', [$startLast, $endLast]) - ->sum(); + ->sum('amount'); $monthTaxesReprocessing = CorpJournal::where(['ref_type' => 'reprocessing_fee', 'corporation_id' => $corpId]) ->whereBetween('date', [$start, $end]) - ->sum(); + ->sum('amount'); $lastTaxesReprocessing = CorpJournal::where(['ref_type' => 'reprocessing_fee', 'corporation_id' => $corpId]) ->whereBetween('date', [$startLast, $endLast]) - ->sum(); + ->sum('amount'); /** * In this next section we are removing the cost of fuel blocks from one structure