Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Fuel Calculations #1044

Merged
merged 9 commits into from
Feb 24, 2021
Merged

Advanced Fuel Calculations #1044

merged 9 commits into from
Feb 24, 2021

Conversation

FatihKoz
Copy link
Contributor

PR aims to have realistic fuel debit calculations as in the real ops. When enabled, remaining fuel amounts from previous flight will be reduced from block fuel and airline will only pay for uplifted fuel amount.

If onboard fuel is enough for the flight or exceeds the required amount no fuel debit will be issued.

If this is the first flight of the aircraft or the tanks are dry, full block fuel will be treated as uplifted.

Disabled / uses current default (fuel_used will be debited)

Aircraft table also will hold the fuel_onboard value (not needed for calculations, just saving for displaying purposes)

PR aims to have realistic fuel debit calculations as in the real ops. When enabled, remaining fuel amounts from previous flight will be reduced from block fuel and airline will only pay for uplifted fuel amount.

If onboard fuel is enough for the flight or exceeds the required amount no fuel debit will be issued.

If this is the first flight of the aircraft or the tanks are dry, full block fuel will be treated as uplifted.

Disabled / uses current default (fuel_used will be debited)

Aircraft table also will hold the fuel_onboard value (not needed for calculations, just saving for displaying purposes)
Love StyleCi
@nabeelio nabeelio merged commit 4fe323a into nabeelio:dev Feb 24, 2021
@nabeelio
Copy link
Owner

Great, looks like the tests passed now with the settings() fix - merged. Thanks!

@nabeelio nabeelio linked an issue Feb 24, 2021 that may be closed by this pull request
@FatihKoz FatihKoz deleted the advfuel branch February 24, 2021 17:25
@FatihKoz
Copy link
Contributor Author

Yes, i was focused on EOF but it had a problem above too. Glad I saw it while checking the build errors. My pleasure and thanks for the quick merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pirep Finance Fuel Logic
2 participants