Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test that opening a multi-currency transaction and saving it again should not modify the transaction Test that opening a multicurrency transaction and then changing it to be no longer multi-currency should maintain consistent amount for the split value and quantity Fix getImbalance() method of transactions to ignore multicurrency transactions.
- Loading branch information
edf7ae5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in
Transaction.java
would be better in a separate commit, as they are not related to adding tests for the issue.I'm adding some comments like this about commit. You can just ignore them :) I'm just pointing out some things that make it more difficult to review, specially in the future, once merged.
edf7ae5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments are good 👍 :)
I think I made this change because I realized there was a bug which was making a test not to function as expected. The createImbalanceSplit promises to return zero for multi-currency transactions, but this was not the case. It was checking the value, not the quantity of the split as test for multicurrency.
This was having undesired side-effects in the test