From b6c4480f3167e3161e0ffeb1ffc523c208b0d1ec Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 14 Dec 2018 17:55:44 -0600 Subject: [PATCH] choose corp tax history for admins --- app/Library/Structures/StructureTaxHelper.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Library/Structures/StructureTaxHelper.php b/app/Library/Structures/StructureTaxHelper.php index 464e4d15a..8abe3d122 100644 --- a/app/Library/Structures/StructureTaxHelper.php +++ b/app/Library/Structures/StructureTaxHelper.php @@ -36,9 +36,10 @@ class StructureTaxHelper { $revenue = $this->GetRevenue($corpId, $refType, $start, $end); $totalFuelCost = $fuelCost * $count; - dd($totalFuelCost); - - $revenue = $revenue - ($fuelCost * $count); + var_dump($revenue); + var_dump($totalFuelCost); + die(); + $revenue = $revenue - $totalFuelCost; //Check to see if the revenue is greater than zero to avoid division by zero error. //Then calculate the tax owed which is revenue divided by ratio previously calcualted. if($revenue > 0.00) {