From b345a45c9bd80fd1171e31f43a0f423f7d891a95 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 13 Feb 2009 18:33:28 -0400 Subject: Don't print an xact's amount if it was calculated That is, if the user didn't enter an amount for that transaction in their ledger journal, don't print one out either. --- src/report.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/report.cc') diff --git a/src/report.cc b/src/report.cc index 335974d2..604a2a47 100644 --- a/src/report.cc +++ b/src/report.cc @@ -64,11 +64,11 @@ report_t::report_t(session_t& _session) "%(entry.cleared ? \" *\" : (entry.pending ? \" !\" : \"\"))" "%(code ? \" (\" + code + \")\" : \"\") %(payee)%(entry.comment | \"\")\n" " %(entry.uncleared ? (cleared ? \"* \" : (pending ? \"! \" : \"\")) : \"\")" - "%-34(account)" - " %12(amount)%(comment | \"\")\n%/" + "%-23(account)" + " %12(calculated ? \"\" : amount)%(comment | \"\")\n%/" " %(entry.uncleared ? (cleared ? \"* \" : (pending ? \"! \" : \"\")) : \"\")" - "%-34(account)" - " %12(amount)%(comment | \"\")\n%/\n"); + "%-23(account)" + " %12(calculated ? \"\" : amount)%(comment | \"\")\n%/\n"); HANDLER(balance_format_).on( "%20(print_balance(strip(display_total), 20))" -- cgit v1.2.3