John Cheng
2155979eb9
Patch currency subunit conversion ( #1484 )
...
* added parentheses around the conversion
* updated finance test
updated the following test:
- journal operations
fixed the following tests:
- pirep finances
- pirep finances specific expense
- pirep finances expenses multi airline
2022-10-09 08:13:11 -05:00
Nabeel S
12848091a2
Laravel 9 Update ( #1413 )
...
Update to Laravel 9 and PHP 8+
Co-authored-by: B.Fatih KOZ <fatih.koz@gmail.com>
2022-03-14 11:45:18 -04:00
Nabeel S
9b2e466b7e
Discord notifications for PIREP and News events #433 ( #1215 )
...
* Discord notifications for events #433
* Style fixes
* Check for blank webhook urls and disable
* Cleanup items after review
* Changes and fixes
* Style fixes
* Don't load env for testing
* Fix status text
* Refactor saving fields/fares so events get the latest data
* Cleanup
* Style fixes
2021-06-04 10:51:59 -04:00
Nabeel S
6e6ba85080
Fix for duplicated/wrong expenses being applied #915 ( #1173 )
...
* Fix for duplicated/wrong expenses being applied #915
* Style fixes
2021-05-06 12:42:56 -04:00
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
Nabeel Shahzad
e95e61d4b4
Fix tests #807
2020-12-07 10:19:43 -05:00
Nabeel Shahzad
f92912dff4
Fix test
2020-12-07 09:50:00 -05:00
Nabeel S
6b5cf38224
Calculate percentage properly instead of adding to the base value #925 ( #942 )
...
* Calculate percentage properly instead of adding to the base value #925
2020-11-26 16:44:57 -05:00
Nabeel S
dc7efc981c
Refactor fares inheritance #905 ( #906 )
2020-10-27 18:46:15 -04:00
Nabeel S
1be68d1e63
Flight/Subfleet fares not returning in API #899 ( #900 )
...
Make sure proper fares are returned from the API #899
2020-10-24 15:11:08 -04:00
Nabeel S
69d89511be
Inherited value can't be removed #811 ( #863 )
...
Inherited value can't be removed #811
2020-10-10 15:24:10 -04:00
Nabeel Shahzad
5b16c88bcb
Fix for all airport expenses being applied #729
2020-05-26 19:13:15 -04:00
Nabeel Shahzad
c46fc9171c
Check for airline being active; fix tests for L7 #718
2020-05-23 11:45:07 -04:00
Nabeel S
99f4f3b3d8
Change currency from settings #671 ( #672 )
2020-04-26 11:55:20 -04:00
Nabeel S
9f3ddd5dbd
Add fixed pilot pay for a flight #487 ( #622 )
2020-03-06 11:36:02 -05:00
Nabeel S
16c977c769
Add load_factor and load_factor_variance to flights #352 ( #620 )
2020-03-05 20:19:12 -05:00
Nabeel S
b9993b9c23
Set expenses on specific flight types #348 ( #549 )
...
* Set expenses on specific flight types #348
* Formatting
* Use strict check for in_array
2020-02-12 10:40:52 -05:00
Nabeel S
74052e4542
Return the flight fares if there are no subfleet fares #488 ( #489 )
...
* Return the flight fares if there are no subfleet fares #488
* Formatting
* Formatting
2020-01-06 13:44:43 -05:00
Nabeel S
9f3ba05880
Issue/329 refactor seeding ( #337 )
...
* Fix Contracts class names
* Refactoring of the file seeds so it's not a mess
* StyleCI fixes
2019-08-05 08:27:53 -04:00
Nabeel Shahzad
62a10224a0
Account for fuel in the finance calculations #313
2019-07-23 08:41:20 -04:00
Nabeel Shahzad
87aa6ed1da
Fix tests for 5.8
2019-05-12 10:50:38 -05:00
Nabeel Shahzad
9596d88b48
Apply fixes from StyleCI
2018-08-26 16:40:04 +00:00
Nabeel Shahzad
cfd0853d79
Convert expense type to char, translations for ExpenseType
2018-04-01 22:26:20 -05:00
Nabeel Shahzad
793b3e7134
change ref_class to ref_model
2018-04-01 14:32:01 -05:00
Nabeel Shahzad
08d3578d38
Add cost_block_hour tests; extra logging
2018-03-29 14:55:25 -05:00
Nabeel Shahzad
36ea12e135
Move the model callbacks into Observables; reduce caching since it held balances incorrectly
2018-03-18 20:37:35 -05:00
Nabeel Shahzad
dc2570a408
Rename the PirepService class
2018-03-06 17:36:06 -06:00
Nabeel Shahzad
dad923489b
Set tags on transactions #130
2018-03-06 06:40:49 -06:00
Nabeel Shahzad
9d3953f3ac
Refactor expenses; move finance service classes; add daily/monthly skeletons #130 #136
2018-03-05 22:49:42 -06:00
Nabeel Shahzad
88a8fd2bbd
Remove subfleet_expenses and combine into main expenses table; select expense type on subfleet #130 #136
2018-03-05 21:24:49 -06:00
Nabeel Shahzad
96e8fbfa78
Add subfleet specific expenses, fixed bug for pirep fares #130 #136
2018-03-05 12:21:38 -06:00
Nabeel Shahzad
9424bf7c46
Fix finding expenses call #130
2018-03-02 17:48:36 -06:00
Nabeel Shahzad
586769fbf0
Fix tests and docs/better checks #130
2018-03-02 17:29:11 -06:00
Nabeel Shahzad
9f89447070
Add pilot pay to journals; cleanup payment code #130
2018-03-02 13:12:39 -06:00
Nabeel Shahzad
a3305249a6
Test for credits and debits with fixed amounts
2018-03-01 19:15:55 -06:00
Nabeel Shahzad
2c52a2f7e6
Post fares/expenses on PIREP to Airline journal #130
2018-03-01 16:20:13 -06:00
Nabeel Shahzad
d22eed50ad
Add test to get the balance group #130
2018-02-28 21:54:58 -06:00
Nabeel Shahzad
498e795e4b
Fixes and tests for the journal and journaled transactions #130
2018-02-28 21:52:36 -06:00
Nabeel Shahzad
d1fcecf873
Change to getValue() on Money class
2018-02-28 18:17:15 -06:00
Nabeel Shahzad
ae0c3c5f27
Get the pilot pay, reconcile with values for subfleet overrides
2018-02-27 16:16:40 -06:00
Nabeel Shahzad
3aa4b8a410
Cleanup and move subfleet/rank settings to FleetService class
2018-02-27 14:12:03 -06:00
Nabeel Shahzad
58e0f50c48
specify fares, js to dynamically change fare form; get applicable fares for the flight/pirep #125
2018-02-24 15:38:25 -06:00
Nabeel Shahzad
d5aef6fb87
Allow setting percent for fare overrides against base fare #125
2018-02-23 15:12:09 -06:00
Nabeel Shahzad
ea09a18956
Fixed formatting of almost every file
2018-02-20 22:33:09 -06:00
Nabeel Shahzad
7e45291b27
Add pivot table for flight_fare to override fare #125
2018-01-07 09:19:46 -06:00