diff options
Diffstat (limited to 'src/filters.cc')
| -rw-r--r-- | src/filters.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/filters.cc b/src/filters.cc index 4f49718b..a88f21e8 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -191,8 +191,15 @@ void calc_xacts::operator()(xact_t& xact) add_or_set_value(xdata.total, last_xact->xdata().total); if (! xdata.has_flags(XACT_EXT_NO_TOTAL)) { +#if 0 bind_scope_t bound_scope(*amount_expr.get_context(), xact); - xdata.total += amount_expr.calc(); + if (xdata.total.is_null()) + xdata.total = amount_expr.calc(); + else + xdata.total += amount_expr.calc(); +#else + xact.add_to_value(xdata.total); +#endif } item_handler<xact_t>::operator()(xact); |
