From b5481d38c00dca35afa2f9598a36813452ae46e0 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 14 Dec 2018 18:00:03 -0600 Subject: [PATCH] choose corp tax history for admins --- app/Library/Structures/StructureTaxHelper.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Library/Structures/StructureTaxHelper.php b/app/Library/Structures/StructureTaxHelper.php index 3ae3d06c8..f228bb074 100644 --- a/app/Library/Structures/StructureTaxHelper.php +++ b/app/Library/Structures/StructureTaxHelper.php @@ -36,12 +36,16 @@ class StructureTaxHelper { $revenue = $this->GetRevenue($corpId, $refType, $start, $end); $totalFuelCost = $fuelCost * $count; - - $revenue = $revenue - $totalFuelCost; + var_dump($revenue); + + $totalRevenue = $revenue - $totalFuelCost; + var_dump($totalRevenue); + var_dump($totalFuelCost); + die(); //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) { - $taxOwed = $revenue / $ratio; + $taxOwed = $totalRevenue / $ratio; } else { $taxOwed = 0.00; }