From c645ee10ccc9bebc90e68b1b148ce554e07736fb Mon Sep 17 00:00:00 2001 From: dbear496 <70439542+dbear496@users.noreply.github.com> Date: Thu, 13 Jul 2023 17:05:27 -0400 Subject: include zero-amounts in balance_t::map_sorted_amounts --- src/filters.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/filters.cc') 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); -- cgit v1.2.3