Fix Finance Memo (Ground Handling) (#1083)

PR fixes issue #1082
This commit is contained in:
B.Fatih KOZ 2021-03-19 03:04:13 +03:00 committed by GitHub
parent 1d83b85d8b
commit 7072428218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -430,13 +430,13 @@ class PirepFinanceService extends Service
);
$ground_handling_cost = $this->getGroundHandlingCost($pirep, $pirep->arr_airport);
Log::info('Finance: PIREP: '.$pirep->id.'; arrival ground handling: '.$ground_handling_cost);
Log::info('Finance: PIREP: '.$pirep->id.'; arr ground handling: '.$ground_handling_cost);
$this->financeSvc->debitFromJournal(
$pirep->airline->journal,
Money::createFromAmount($ground_handling_cost),
$pirep,
'Ground Handling (Departure)',
'Ground Handling (Arrival)',
'Ground Handling',
'ground_handling'
);