phpvms/tests
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
..
data Add missing columns from subfleet export #926 (#941) 2020-11-26 13:34:04 -05:00
AcarsTest.php Simbrief attachment not working #1005 (#1006) 2021-01-25 06:54:17 -05:00
AirlineTest.php Check for airline being active; fix tests for L7 #718 2020-05-23 11:45:07 -04:00
ApiTest.php Add web cron ability #821 (#1073) 2021-03-09 11:36:56 -05:00
ApiTestTrait.php Apply fixes from StyleCI 2018-08-26 16:40:04 +00:00
AwardsTest.php FlightRouteAwards - fix if last pirep is empty/other error conditions (#886) 2020-10-22 16:25:52 -04:00
BidTest.php Bids are missing subfleets in API response #867 (#868) 2020-10-12 12:49:11 -04:00
Bootstrap.php Check for airline being active; fix tests for L7 #718 2020-05-23 11:45:07 -04:00
CreatesApplication.php 384 Laravel 6 changes (#385) 2019-09-13 08:05:02 -04:00
FinanceTest.php Fix for Fuel and Ground Handling Costs (#1050) 2021-03-18 11:32:40 -04:00
FlightTest.php Make sure stdclass is returned in flight fields 2020-10-29 12:38:40 -04:00
GeoTest.php Check for airline being active; fix tests for L7 #718 2020-05-23 11:45:07 -04:00
ImporterTest.php Refactor fares inheritance #905 (#906) 2020-10-27 18:46:15 -04:00
MathTest.php Calculate percentage properly instead of adding to the base value #925 (#942) 2020-11-26 16:44:57 -05:00
MetarTest.php Fix null visibility in METAR (#1079) 2021-03-17 17:40:45 -04:00
NewsTest.php Notifications fixes (#804) 2020-09-03 12:50:42 -04:00
PIREPTest.php Add unit conversion handling for block_fuel like for fuel_used (#1076) 2021-03-15 08:30:14 -04:00
RegistrationTest.php Check for airline being active; fix tests for L7 #718 2020-05-23 11:45:07 -04:00
SimBriefTest.php Restrict Simbrief to user who generated it (#1064) 2021-03-06 13:49:42 -05:00
SubfleetTest.php Flight/Subfleet fares not returning in API #899 (#900) 2020-10-24 15:11:08 -04:00
TestCase.php Check for airline being active; fix tests for L7 #718 2020-05-23 11:45:07 -04:00
TestData.php Fix pilot leave calculation #1022 (#1035) 2021-02-17 18:54:18 -05:00
UserTest.php Fix pilot leave calculation #1022 (#1035) 2021-02-17 18:54:18 -05:00
UtilsTest.php Add web cron ability #821 (#1073) 2021-03-09 11:36:56 -05:00
VersionTest.php Check for airline being active; fix tests for L7 #718 2020-05-23 11:45:07 -04:00