-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[report-utilities] fix gnc:account-accumulate-at-dates sorting & oper…
…ator This commit performs 2 important fixes. 1. the account splitlist walking assumes that the split->date always increases. This is now enforced by sorting the splitlist, *only* if a custom split->date is offered. By default the splits are sorted by posted_date, and if a custom split->date is used, will be stable-sorted to ensure the algorithm works. 2. the handling of splits *ON* date boundaries is fixed. Previously if a split->date was equal to a date boundary, it would be considered part of the "after" date section. It is more intuitive that a date boundary includes all splits on and before the date. In regular use the dates are normalised to canonicaldaytime or end-day-time and is not important. However when comparing reconciled dates, the statement dates be exactly equal to the reconciled dates, therefore this difference is crucial. In other words, the date boundaries mean we include all splits before or on the date (to the exact second). Add a test to verify above.
- Loading branch information
1 parent
33902a6
commit 447de7f
Showing
2 changed files
with
52 additions
and
5 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