summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/filters.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/filters.cc b/src/filters.cc
index a88f21e8..4fcada4b 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -191,15 +191,11 @@ 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);
if (xdata.total.is_null())
- xdata.total = amount_expr.calc();
+ xdata.total = amount_expr.calc(bound_scope);
else
- xdata.total += amount_expr.calc();
-#else
- xact.add_to_value(xdata.total);
-#endif
+ xdata.total += amount_expr.calc(bound_scope);
}
item_handler<xact_t>::operator()(xact);