structure controller

This commit is contained in:
2018-12-11 21:01:10 -06:00
parent 8cbc8f6540
commit 6f2123bb75

View File

@@ -70,10 +70,10 @@ class StructureController extends Controller
//Get the total taxes produced by the structure(s) over a given set of dates
$revenue = $this->GetRevenue($corpId, $refType, $start, $end);
$revenue = $revenue - $fuelCost;
$revenue = floatval($revenue) - floatval($fuelCost);
dd($revenue);
//Calculate the tax owed which is revenue divided by ratio previously calculated
$taxOwed = floatval($revenue) / $ratio;
$taxOwed = $revenue / $ratio;
//Check for negative number, and if negative, zero it out.
if($taxOwed < 0.00){
$taxOwed = 0.00;