Change fuel calculation to fuel used #807

This commit is contained in:
Nabeel Shahzad 2020-12-07 09:46:07 -05:00
parent d1a3155653
commit f62c607138

View File

@ -152,7 +152,7 @@ class PirepFinanceService extends Service
public function payFuelCosts(Pirep $pirep): void
{
$ap = $pirep->dpt_airport;
$fuel_used = $pirep->block_fuel;
$fuel_used = $pirep->fuel_used;
$debit = Money::createFromAmount($fuel_used * $ap->fuel_jeta_cost);
Log::info('Finance: Fuel cost, (fuel='.$fuel_used.', cost='.$ap->fuel_jeta_cost.') D='