*** empty log message ***
This commit is contained in:
parent
a39dfa95fd
commit
4e8bd8cc5b
1 changed files with 9 additions and 6 deletions
15
reports.cc
15
reports.cc
|
|
@ -78,9 +78,9 @@ void report_balances(std::ostream& out, regexps_map& regexps)
|
||||||
for (entries_list_iterator i = main_ledger->entries.begin();
|
for (entries_list_iterator i = main_ledger->entries.begin();
|
||||||
i != main_ledger->entries.end();
|
i != main_ledger->entries.end();
|
||||||
i++) {
|
i++) {
|
||||||
if ((have_beginning && difftime((*i)->date, begin_date) < 0) ||
|
if ((show_cleared && ! (*i)->cleared) ||
|
||||||
(have_ending && difftime((*i)->date, end_date) >= 0) ||
|
(have_beginning && difftime((*i)->date, begin_date) < 0) ||
|
||||||
(show_cleared && ! (*i)->cleared))
|
(have_ending && difftime((*i)->date, end_date) >= 0))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (std::list<transaction *>::iterator x = (*i)->xacts.begin();
|
for (std::list<transaction *>::iterator x = (*i)->xacts.begin();
|
||||||
|
|
@ -183,8 +183,11 @@ void print_register(const std::string& acct_name, std::ostream& out,
|
||||||
for (std::list<transaction *>::iterator x = (*i)->xacts.begin();
|
for (std::list<transaction *>::iterator x = (*i)->xacts.begin();
|
||||||
x != (*i)->xacts.end();
|
x != (*i)->xacts.end();
|
||||||
x++) {
|
x++) {
|
||||||
if (! acct_regex.match((*x)->acct->as_str()) ||
|
if ((! have_beginning && ! have_ending &&
|
||||||
! show_cleared && (*i)->cleared)
|
! show_cleared && (*i)->cleared) ||
|
||||||
|
(have_beginning && difftime((*i)->date, begin_date) < 0) ||
|
||||||
|
(have_ending && difftime((*i)->date, end_date) >= 0) ||
|
||||||
|
(! acct_regex.match((*x)->acct->as_str())))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
char buf[32];
|
char buf[32];
|
||||||
|
|
@ -234,7 +237,7 @@ void print_register(const std::string& acct_name, std::ostream& out,
|
||||||
std::string xact_str = xact->acct_as_str();
|
std::string xact_str = xact->acct_as_str();
|
||||||
|
|
||||||
if (xact == *x && ! show_subtotals)
|
if (xact == *x && ! show_subtotals)
|
||||||
xact_str = "(Splits...)";
|
xact_str = "<Splits...>";
|
||||||
|
|
||||||
out.width(22);
|
out.width(22);
|
||||||
out << std::left << truncated(xact_str, 22) << " ";
|
out << std::left << truncated(xact_str, 22) << " ";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue