From 506aac165087047c5fd686b2b4143717acf7f767 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 11 Dec 2018 20:08:03 -0600 Subject: [PATCH] structure controller --- app/Http/Controllers/StructureController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/StructureController.php b/app/Http/Controllers/StructureController.php index b90d0d9f5..02a525344 100644 --- a/app/Http/Controllers/StructureController.php +++ b/app/Http/Controllers/StructureController.php @@ -153,11 +153,11 @@ class StructureController extends Controller ->whereBetween('date', [$start, $end]) ->sum('amount'); } else if($refType === 'Refinery'){ - $revenu = CorpJournal::where(['ref_type' => 'reprocessing_tax', 'corporation_id' => $corpId]) + $revenue = CorpJournal::where(['ref_type' => 'reprocessing_tax', 'corporation_id' => $corpId]) ->whereBetween('date', [$start, $end]) ->sum('amount'); } else { - $revenu = 0.00; + $revenue = 0.00; } return number_format($revenue, 2, '.', ',');