parent
1d83b85d8b
commit
7072428218
@ -430,13 +430,13 @@ class PirepFinanceService extends Service
|
|||||||
);
|
);
|
||||||
|
|
||||||
$ground_handling_cost = $this->getGroundHandlingCost($pirep, $pirep->arr_airport);
|
$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(
|
$this->financeSvc->debitFromJournal(
|
||||||
$pirep->airline->journal,
|
$pirep->airline->journal,
|
||||||
Money::createFromAmount($ground_handling_cost),
|
Money::createFromAmount($ground_handling_cost),
|
||||||
$pirep,
|
$pirep,
|
||||||
'Ground Handling (Departure)',
|
'Ground Handling (Arrival)',
|
||||||
'Ground Handling',
|
'Ground Handling',
|
||||||
'ground_handling'
|
'ground_handling'
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user