more fixes
This commit is contained in:
parent
05b2cc46fd
commit
6e6246c927
2 changed files with 10 additions and 4 deletions
5
format.h
5
format.h
|
|
@ -208,6 +208,11 @@ class format_account
|
||||||
const item_predicate<account_t>&
|
const item_predicate<account_t>&
|
||||||
disp_pred_functor,
|
disp_pred_functor,
|
||||||
const account_t *& to_show);
|
const account_t *& to_show);
|
||||||
|
static bool disp_subaccounts_p(const account_t * account) {
|
||||||
|
const account_t * temp;
|
||||||
|
return disp_subaccounts_p(account, item_predicate<account_t>(NULL), temp);
|
||||||
|
}
|
||||||
|
|
||||||
static bool display_account(const account_t * account,
|
static bool display_account(const account_t * account,
|
||||||
const item_predicate<account_t>&
|
const item_predicate<account_t>&
|
||||||
disp_pred_functor);
|
disp_pred_functor);
|
||||||
|
|
|
||||||
5
main.cc
5
main.cc
|
|
@ -651,10 +651,11 @@ int main(int argc, char * argv[])
|
||||||
walk_accounts(journal->master, formatter, predicate.get(),
|
walk_accounts(journal->master, formatter, predicate.get(),
|
||||||
xact_display_flags, show_subtotals, sort_order.get());
|
xact_display_flags, show_subtotals, sort_order.get());
|
||||||
|
|
||||||
|
if (format_account::disp_subaccounts_p(journal->master)) {
|
||||||
std::string end_format = "--------------------\n";
|
std::string end_format = "--------------------\n";
|
||||||
format.reset(end_format + f);
|
format.reset(end_format + f);
|
||||||
format_account(std::cout, format,
|
format.format_elements(std::cout, details_t(journal->master));
|
||||||
display_predicate.get())(journal->master);
|
}
|
||||||
}
|
}
|
||||||
else if (command == "E") {
|
else if (command == "E") {
|
||||||
format_t format(first_line_format);
|
format_t format(first_line_format);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue