diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/account.cc | 1 | ||||
-rw-r--r-- | src/report.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/account.cc b/src/account.cc index ad94e48a..6651c575 100644 --- a/src/account.cc +++ b/src/account.cc @@ -326,6 +326,7 @@ void account_t::calculate_sums(expr_t& amount_expr) value_t amount(amount_expr.calc(bound_scope)); if (! amount.is_null()) { + DEBUG("account.sums", "Added " << amount << " to " << fullname()); add_or_set_value(xd.total, amount); xd.total_count += xd.count; } else { diff --git a/src/report.h b/src/report.h index 5ab29736..498af88f 100644 --- a/src/report.h +++ b/src/report.h @@ -396,6 +396,7 @@ public: OPTION_(report_t, gain, DO() { // -G parent->HANDLER(revalued).on_only(); + parent->HANDLER(account_amount_).set_expr("amount | (0, 0)"); parent->HANDLER(amount_).set_expr("(amount, cost)"); // Since we are displaying the amounts of revalued postings, they // will end up being composite totals, and hence a pair of pairs. |