Pass in the total_expr directly to changed_value_xacts.

This commit is contained in:
John Wiegley 2009-01-19 22:28:17 -04:00
parent e9a5a9bd77
commit 5e25a6d838

View file

@ -113,7 +113,8 @@ report_t::chain_xact_handlers(xact_handler_ptr base_handler,
// list to account for changes in market value of commodities,
// which otherwise would affect the running total unpredictably.
if (show_revalued)
handler.reset(new changed_value_xacts(handler, show_revalued_only));
handler.reset(new changed_value_xacts(handler, total_expr,
show_revalued_only));
// collapse_xacts causes entries with multiple xacts
// to appear as entries with a subtotaled xact for each