phpvms/app/Services
B.Fatih KOZ 1d83b85d8b
Fix for Fuel and Ground Handling Costs (#1050)
* Fix for Fuel and Ground Handling Costs

PR aims to fix issue #1048  and implements the feature request #1049 

If no fuel cost is defined for departure airport, settings / airport fuel price will be used.
If no ground handling cost is defined for airports, settings / airport ground handling cost will be used.

Ground handling prices of both departure and arrival airport will be used for calculations.

* Resolve conflict with latest dev

PR will still fail checks due to double ground handling fares and will work on it to have two records at transactions for dep/arr

* Remove Double GH Costs / Fix The Bug Only

Removed double GH costs for now, pr aims only fixing the current issue (general settings not being read for fuel and ground handling costs)

* Add departure and arrival airports to ground handling

* Style fix

* Fix tests

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
Co-authored-by: Nabeel Shahzad <nabeel@nabeel.sh>
2021-03-18 11:32:40 -04:00
..
AirportLookup Remove Google Analytics #728 (#745) 2020-06-04 10:36:55 -04:00
Finance Fix for Fuel and Ground Handling Costs (#1050) 2021-03-18 11:32:40 -04:00
Importers Default values for automatically added airports #829 (#878) 2020-10-20 15:25:13 -04:00
ImportExport Add missing columns from subfleet export #926 (#941) 2020-11-26 13:34:04 -05:00
Installer Set missing value from default 2021-02-23 11:25:06 -05:00
Metar Weather METAR/TAF enhancements (#964) 2021-02-19 12:45:39 -05:00
AircraftService.php Recalcuate aircraft stats in nightly cron and importer #585 #443 (#587) 2020-02-24 19:35:28 -05:00
AirlineService.php Create journal when new airline is created #667 (#670) 2020-04-26 10:31:58 -04:00
AirportService.php Weather METAR/TAF enhancements (#964) 2021-02-19 12:45:39 -05:00
AnalyticsService.php Remove Google Analytics #728 (#745) 2020-06-04 10:36:55 -04:00
AwardService.php 7.0.0-beta3 Release (#541) 2020-02-08 13:29:34 -05:00
BidService.php Restrict Simbrief to user who generated it (#1064) 2021-03-06 13:49:42 -05:00
CronService.php Extend cron check for 12 hours 2021-02-13 15:17:16 -05:00
DatabaseService.php Don't allow cancels from certain states (#396) 2019-09-16 13:08:26 -04:00
ExportService.php Don't allow cancels from certain states (#396) 2019-09-16 13:08:26 -04:00
FareService.php Refactoring Simbrief fares and aircraft (#1054) 2021-03-02 12:29:04 -05:00
FileService.php 229 url for downloads (#369) 2019-08-26 14:43:50 -04:00
FinanceService.php Change currency from settings #671 (#672) 2020-04-26 11:55:20 -04:00
FleetService.php Fix issue where user stats aren't incremented on PIREP auto accept (#335) 2019-08-01 15:23:59 -04:00
FlightService.php Assign subfleets from ranks when there are no subfleets on a flight 2021-02-19 08:20:17 -05:00
GeoService.php Use optional() around the airport fields (#537) 2020-02-03 12:23:58 -05:00
ImporterService.php Installing and managing modules from admin panel (#847) 2020-10-19 10:10:28 -04:00
ImportService.php Remove existing fares when importing (#988) 2021-01-16 13:09:56 -05:00
ModuleService.php Fixes for installer/modules race condition (#883) 2020-10-21 13:28:54 -04:00
NewsService.php 7.0.0-beta3 Release (#541) 2020-02-08 13:29:34 -05:00
PirepService.php Implement PIREP deletion #1014 (#1055) 2021-03-02 15:43:34 -05:00
RoleService.php User country mapping; ignore unused groups #443 (#584) 2020-02-24 15:12:36 -05:00
SimBriefService.php Refactoring Simbrief fares and aircraft (#1054) 2021-03-02 12:29:04 -05:00
UserService.php Fix findUsersOnleave Function (#1042) 2021-02-22 11:23:50 -05:00
VersionService.php Fix for update showing available when one isn't #707 2020-05-21 11:50:13 -04:00