From a0fb5ab80400d64a41f62e6e1f452ea2aeb8d0e6 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 7 Dec 2018 03:06:02 -0600 Subject: [PATCH] structure controller --- app/Http/Controllers/StructureController.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/StructureController.php b/app/Http/Controllers/StructureController.php index 64a4d47f5..271fe46b7 100644 --- a/app/Http/Controllers/StructureController.php +++ b/app/Http/Controllers/StructureController.php @@ -59,22 +59,24 @@ class StructureController extends Controller /** * In this next section we are removing the cost of fuel blocks from one structure */ - $monthTaxesMarket = $monthTaxesMarket - ($hFinances->CalculateFuelBlockCost('market')); + $fuelCost = $hFinances->CalculateFuelBlockCost('market'); + dd($monthTaxesMarket); + $monthTaxesMarket = $monthTaxesMarket - $fuelCost; if($monthTaxesMarket < 0.00) { $monthTaxesMarket = 0.00; } - $lastTaxesMarket = $lastTaxesMarket - ($hFinances->CalculateFuelBlocksCost('market')); + $lastTaxesMarket = $lastTaxesMarket - $fuelCost; if($lastTaxesMarket < 0.00) { $lastTaxesMarket = 0.00; } - $monthTaxesReprocessing = $monthTaxesReprocessing - ($hFinances->CalculateFuelBlockCost('reprocessing')); + $monthTaxesReprocessing = $monthTaxesReprocessing - $fuelCost; if($monthTaxesReprocessing < 0.00) { $monthTaxesReprocessing = 0.00; } - $lastTaxesReprocessing = $lastTaxesReprocessing - ($hFinances->CalculateFuelBlockCost('reprocessing')); + $lastTaxesReprocessing = $lastTaxesReprocessing - $fuelCost; if($lastTaxesReprocessing < 0.00) { $lastTaxesReprocessing = 0.00; }