From 1414541257769e91510d6db993973f0f01e0fea8 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 14 Dec 2018 17:47:09 -0600 Subject: [PATCH] choose corp tax history for admins --- app/Library/Structures/StructureTaxHelper.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/Library/Structures/StructureTaxHelper.php b/app/Library/Structures/StructureTaxHelper.php index 3f0c9f921..271ce0d65 100644 --- a/app/Library/Structures/StructureTaxHelper.php +++ b/app/Library/Structures/StructureTaxHelper.php @@ -38,13 +38,11 @@ class StructureTaxHelper { $revenue = $revenue - ($fuelCost * $count); //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; - //} else { - // $taxOwed = 0.00; - //} - //Calculate the tax owed which is revenue divided by ratio previously calculated - $taxOwed = (float)$revenue / (float)$ratio; + if($revenue > 0.00) { + $taxOwed = $revenue / $ratio; + } else { + $taxOwed = 0.00; + } //Check for negative number, and if negative, zero it out. if($taxOwed < 0.00){ $taxOwed = 0.00;