choose corp tax history for admins
This commit is contained in:
@@ -34,7 +34,10 @@ class StructureTaxHelper {
|
|||||||
|
|
||||||
//Get the total taxes produced by the structure(s) over a given set of dates
|
//Get the total taxes produced by the structure(s) over a given set of dates
|
||||||
$revenue = $this->GetRevenue($corpId, $refType, $start, $end);
|
$revenue = $this->GetRevenue($corpId, $refType, $start, $end);
|
||||||
dd($fuelCost);
|
|
||||||
|
$totalFuelCost = $fuelCost * $count;
|
||||||
|
dd($totalFuelCost);
|
||||||
|
|
||||||
$revenue = $revenue - ($fuelCost * $count);
|
$revenue = $revenue - ($fuelCost * $count);
|
||||||
//Check to see if the revenue is greater than zero to avoid division by zero error.
|
//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.
|
//Then calculate the tax owed which is revenue divided by ratio previously calcualted.
|
||||||
@@ -99,7 +102,7 @@ class StructureTaxHelper {
|
|||||||
|
|
||||||
//Multiply the amount of fuel blocks used by the structure by 20,000.
|
//Multiply the amount of fuel blocks used by the structure by 20,000.
|
||||||
$cost = $fuelBlocks * 20000.00;
|
$cost = $fuelBlocks * 20000.00;
|
||||||
dd($cost);
|
|
||||||
//Return to the calling function
|
//Return to the calling function
|
||||||
return $cost;
|
return $cost;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user