structure controller

This commit is contained in:
2018-12-07 03:06:02 -06:00
parent 7322a6f62e
commit a0fb5ab804

View File

@@ -59,22 +59,24 @@ class StructureController extends Controller
/** /**
* In this next section we are removing the cost of fuel blocks from one structure * 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) { if($monthTaxesMarket < 0.00) {
$monthTaxesMarket = 0.00; $monthTaxesMarket = 0.00;
} }
$lastTaxesMarket = $lastTaxesMarket - ($hFinances->CalculateFuelBlocksCost('market')); $lastTaxesMarket = $lastTaxesMarket - $fuelCost;
if($lastTaxesMarket < 0.00) { if($lastTaxesMarket < 0.00) {
$lastTaxesMarket = 0.00; $lastTaxesMarket = 0.00;
} }
$monthTaxesReprocessing = $monthTaxesReprocessing - ($hFinances->CalculateFuelBlockCost('reprocessing')); $monthTaxesReprocessing = $monthTaxesReprocessing - $fuelCost;
if($monthTaxesReprocessing < 0.00) { if($monthTaxesReprocessing < 0.00) {
$monthTaxesReprocessing = 0.00; $monthTaxesReprocessing = 0.00;
} }
$lastTaxesReprocessing = $lastTaxesReprocessing - ($hFinances->CalculateFuelBlockCost('reprocessing')); $lastTaxesReprocessing = $lastTaxesReprocessing - $fuelCost;
if($lastTaxesReprocessing < 0.00) { if($lastTaxesReprocessing < 0.00) {
$lastTaxesReprocessing = 0.00; $lastTaxesReprocessing = 0.00;
} }