diff options
author | dbear496 <70439542+dbear496@users.noreply.github.com> | 2023-07-13 17:05:27 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2023-07-16 05:22:57 -0700 |
commit | c645ee10ccc9bebc90e68b1b148ce554e07736fb (patch) | |
tree | 9eb7ae66abace2181dedf101e28a2dad4621fc15 /src/filters.cc | |
parent | 4a5b5c4db575710e910913c95f7b13419fe09919 (diff) | |
download | fork-ledger-c645ee10ccc9bebc90e68b1b148ce554e07736fb.tar.gz fork-ledger-c645ee10ccc9bebc90e68b1b148ce554e07736fb.tar.bz2 fork-ledger-c645ee10ccc9bebc90e68b1b148ce554e07736fb.zip |
include zero-amounts in balance_t::map_sorted_amounts
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc index f725c247..3acb5624 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -1082,6 +1082,7 @@ namespace { } void operator()(const amount_t& amount) { + if(amount.is_zero()) return; post_t& balance_post = temps.create_post(xact, &balance_account); balance_post.amount = - amount; (*handler)(balance_post); |