choose corp tax history for admins

This commit is contained in:
2018-12-14 18:00:03 -06:00
parent 9fcd875a57
commit b5481d38c0

View File

@@ -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;
}