Changed only_preliminaries to for_accounts_report

This commit is contained in:
John Wiegley 2009-11-18 23:13:33 -05:00
parent cd284f98c8
commit 539887b3fb
2 changed files with 5 additions and 5 deletions

View file

@ -41,7 +41,7 @@ namespace ledger {
post_handler_ptr chain_post_handlers(report_t& report, post_handler_ptr chain_post_handlers(report_t& report,
post_handler_ptr base_handler, post_handler_ptr base_handler,
bool only_preliminaries) bool for_accounts_report)
{ {
post_handler_ptr handler(base_handler); post_handler_ptr handler(base_handler);
predicate_t display_predicate; predicate_t display_predicate;
@ -51,7 +51,7 @@ post_handler_ptr chain_post_handlers(report_t& report,
expr_t& expr(report.HANDLER(amount_).expr); expr_t& expr(report.HANDLER(amount_).expr);
expr.set_context(&report); expr.set_context(&report);
if (! only_preliminaries) { if (! for_accounts_report) {
// Make sure only forecast postings which match are allowed through // Make sure only forecast postings which match are allowed through
if (report.HANDLED(forecast_while_)) { if (report.HANDLED(forecast_while_)) {
handler.reset(new filter_posts handler.reset(new filter_posts
@ -95,7 +95,7 @@ post_handler_ptr chain_post_handlers(report_t& report,
// calc_posts computes the running total. When this appears will determine, // calc_posts computes the running total. When this appears will determine,
// for example, whether filtered posts are included or excluded from the // for example, whether filtered posts are included or excluded from the
// running total. // running total.
handler.reset(new calc_posts(handler, expr, only_preliminaries)); handler.reset(new calc_posts(handler, expr));
// filter_posts will only pass through posts matching the // filter_posts will only pass through posts matching the
// `secondary_predicate'. // `secondary_predicate'.
@ -105,7 +105,7 @@ post_handler_ptr chain_post_handlers(report_t& report,
handler.reset(new filter_posts(handler, only_predicate, report)); handler.reset(new filter_posts(handler, only_predicate, report));
} }
if (! only_preliminaries) { if (! for_accounts_report) {
// sort_posts will sort all the posts it sees, based on the `sort_order' // sort_posts will sort all the posts it sees, based on the `sort_order'
// value expression. // value expression.
if (report.HANDLED(sort_)) { if (report.HANDLED(sort_)) {

View file

@ -84,7 +84,7 @@ class report_t;
post_handler_ptr post_handler_ptr
chain_post_handlers(report_t& report, chain_post_handlers(report_t& report,
post_handler_ptr base_handler, post_handler_ptr base_handler,
bool only_preliminaries = false); bool for_accounts_report = false);
} // namespace ledger } // namespace ledger