diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-25 07:12:14 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-25 07:12:14 -0400 |
commit | a27ae2fb005e82c38835db3f3cd68e02ca211526 (patch) | |
tree | 5ded539b864a97431a951d49630de3f3f754e4f5 | |
parent | 5ad722fcdf2bb2026baa182aaa527858e3f4eb6b (diff) | |
download | fork-ledger-a27ae2fb005e82c38835db3f3cd68e02ca211526.tar.gz fork-ledger-a27ae2fb005e82c38835db3f3cd68e02ca211526.tar.bz2 fork-ledger-a27ae2fb005e82c38835db3f3cd68e02ca211526.zip |
fixed another problem with interval reports and the -s option
-rw-r--r-- | main.cc | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -105,18 +105,17 @@ chain_formatters(const std::string& command, // dow_transactions is like interval_transactions, except that it // reports all the transactions that fall on each subsequent day // of the week. - if (config.show_subtotal) { + if (config.days_of_the_week) + ptrs.push_back(formatter = new dow_transactions(formatter)); + else if (config.show_subtotal) ptrs.push_back(formatter = new subtotal_transactions(formatter)); - } - else if (! config.report_interval.empty()) { + + if (! config.report_interval.empty()) { ptrs.push_back(formatter = new interval_transactions(formatter, config.report_interval)); ptrs.push_back(formatter = new sort_transactions(formatter, "d")); } - else if (config.days_of_the_week) { - ptrs.push_back(formatter = new dow_transactions(formatter)); - } } // related_transactions will pass along all transactions related |