fixed another problem with interval reports and the -s option
This commit is contained in:
parent
5ad722fcdf
commit
a27ae2fb00
1 changed files with 5 additions and 6 deletions
11
main.cc
11
main.cc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue