From 10fa9b0b64bc4b9af29b3ae30710d1a77769a068 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 24 Dec 2018 19:22:13 -0600 Subject: [PATCH] replacing journals in structure tax helper --- app/Library/Structures/StructureTaxHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Library/Structures/StructureTaxHelper.php b/app/Library/Structures/StructureTaxHelper.php index 8a64cd28e..cf0f59c46 100644 --- a/app/Library/Structures/StructureTaxHelper.php +++ b/app/Library/Structures/StructureTaxHelper.php @@ -58,7 +58,7 @@ class StructureTaxHelper { public function GetRevenue($corpId, $refType, $start, $end) { $revenue = 0.00; if($refType == 'Market') { - $revenue = MarketTaxJournal::where(['ref_type' => 'brokers_fee', 'corporation_id' => $corpId]) + $revenue = CorpMarketJournal::where(['ref_type' => 'brokers_fee', 'corporation_id' => $corpId]) ->whereBetween('date', [$start, $end]) ->sum('amount'); } else if($refType == 'Refinery'){