summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-19 15:47:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-19 15:47:54 -0400
commit26ddb8343cdd0585e5ac6594c0d03e8ac34782fa (patch)
tree6b1ef15c7ba793aa432b918f925104fecd772f47
parentbef9fdc471e613ef4810ad1305c226334218fedd (diff)
downloadfork-ledger-26ddb8343cdd0585e5ac6594c0d03e8ac34782fa.tar.gz
fork-ledger-26ddb8343cdd0585e5ac6594c0d03e8ac34782fa.tar.bz2
fork-ledger-26ddb8343cdd0585e5ac6594c0d03e8ac34782fa.zip
Don't sort or subtotal xacts for account reports
-rw-r--r--src/chain.cc40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/chain.cc b/src/chain.cc
index c5891f3a..30a6793c 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -80,16 +80,16 @@ xact_handler_ptr chain_xact_handlers(report_t& report,
handler.reset(new filter_xacts(handler, only_predicate, report));
}
- // sort_xacts will sort all the xacts it sees, based on the `sort_order'
- // value expression.
- if (report.HANDLED(sort_)) {
- if (report.HANDLED(sort_entries_))
- handler.reset(new sort_entries(handler, report.HANDLER(sort_).str()));
- else
- handler.reset(new sort_xacts(handler, report.HANDLER(sort_).str()));
- }
-
if (! only_preliminaries) {
+ // sort_xacts will sort all the xacts it sees, based on the `sort_order'
+ // value expression.
+ if (report.HANDLED(sort_)) {
+ if (report.HANDLED(sort_entries_))
+ handler.reset(new sort_entries(handler, report.HANDLER(sort_).str()));
+ else
+ handler.reset(new sort_xacts(handler, report.HANDLER(sort_).str()));
+ }
+
// changed_value_xacts adds virtual xacts to the list to account for
// changes in market value of commodities, which otherwise would affect
// the running total unpredictably.
@@ -104,18 +104,18 @@ xact_handler_ptr chain_xact_handlers(report_t& report,
handler.reset(new collapse_xacts(handler, expr,
display_predicate, only_predicate,
report.HANDLED(collapse_if_zero)));
- }
- // subtotal_xacts combines all the xacts it receives into one subtotal
- // entry, which has one xact for each commodity in each account.
- //
- // period_xacts is like subtotal_xacts, but it subtotals according to time
- // periods rather than totalling everything.
- //
- // dow_xacts is like period_xacts, except that it reports all the xacts
- // that fall on each subsequent day of the week.
- if (report.HANDLED(subtotal))
- handler.reset(new subtotal_xacts(handler, expr));
+ // subtotal_xacts combines all the xacts it receives into one subtotal
+ // entry, which has one xact for each commodity in each account.
+ //
+ // period_xacts is like subtotal_xacts, but it subtotals according to time
+ // periods rather than totalling everything.
+ //
+ // dow_xacts is like period_xacts, except that it reports all the xacts
+ // that fall on each subsequent day of the week.
+ if (report.HANDLED(subtotal))
+ handler.reset(new subtotal_xacts(handler, expr));
+ }
if (report.HANDLED(dow))
handler.reset(new dow_xacts(handler, expr));