From f62c60713801a204deb30608dac691b2857bf7eb Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Mon, 7 Dec 2020 09:46:07 -0500 Subject: [PATCH] Change fuel calculation to fuel used #807 --- app/Services/Finance/PirepFinanceService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Finance/PirepFinanceService.php b/app/Services/Finance/PirepFinanceService.php index e4f41d7f..6a5c4518 100644 --- a/app/Services/Finance/PirepFinanceService.php +++ b/app/Services/Finance/PirepFinanceService.php @@ -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='