-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(split_income): Convert positions to weight before subtracting tax…
…es (#8) Previously, the code assumed that income and taxes used the same currency. If the postings had an additional associated cost or price, this was not considered. Now, to obtain the correct amount, the beancount.core.convert.get_weight function is used. It provides the amount that will need to be balanced from a posting of a transaction. Appropriate tests are included. Fixes #7
- Loading branch information
Showing
2 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters