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

Demonstrate fx handling in budget report #1497

Merged

Conversation

CrfzdPQM6
Copy link

This demonstrates a fix to https://bugs.gnucash.org/show_bug.cgi?id=798716

It shows the structure of new functionality to add, since I think the current functions do not allow this.

In essence, for budget reporting, the balance difference of an account should be computed in the local currency first, and then the change should be converted to a parent currency. The results for all sub-accounts are "rolled up" the account hierarchy in the same way as usual, using gnc_account_foreach_descendant.

It will need formatting to match style policies and coding guidelines.

Copy link
Member

@jralls jralls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM. @christopherlam ?

libgnucash/engine/Account.cpp Outdated Show resolved Hide resolved
@christopherlam
Copy link
Contributor

Looks fine.

@jralls jralls changed the base branch from maint to stable March 27, 2023 18:19
@CrfzdPQM6 CrfzdPQM6 force-pushed the b_betterCurrencyBudgetReporting branch from 788c550 to d1c0c98 Compare April 29, 2023 12:21
@CrfzdPQM6
Copy link
Author

OK, updates incorporated and rebased onto stable. Hope this was the right thing to do. Let me know if there's anything more I should do, otherwise thanks for the review and looking forward to having this released!

@jralls
Copy link
Member

jralls commented Apr 29, 2023

Please squash the two commits into one.

@jralls jralls force-pushed the b_betterCurrencyBudgetReporting branch from d1c0c98 to 04b0317 Compare April 29, 2023 19:04
@code-gnucash-org code-gnucash-org merged commit bb423e4 into Gnucash:stable Apr 29, 2023
3 checks passed
@jralls
Copy link
Member

jralls commented Apr 29, 2023

Thanks!

@CrfzdPQM6
Copy link
Author

Just pushed a squashed commit but I see you've done it faster. Well done! Thanks for merging this, and for all your efforts @jralls and @christopherlam

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