From 83648af19fd702127e8af98d20938c21c4ad9e0e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 19 Jan 2009 22:27:10 -0400 Subject: Added the concept of a "display_total", used for showing the values in the totals column of both the register and balance reports. This is different from the internal calculated total, which is still "total_expr". --- src/session.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/session.cc') diff --git a/src/session.cc b/src/session.cc index 961261e8..ccc3aa34 100644 --- a/src/session.cc +++ b/src/session.cc @@ -72,16 +72,16 @@ void release_session_context() session_t::session_t() : register_format ("%-.9(date) %-.20(payee) %-.23(account) %!12(print_balance(amount_expr, 12, 67)) " - "%!12(print_balance(total_expr, 12, 80, true))\n%/" + "%!12(print_balance(display_total, 12, 80, true))\n%/" "%31|%-.23(account) %!12(print_balance(amount_expr, 12, 67)) " - "%!12(print_balance(total_expr, 12, 80, true))\n"), + "%!12(print_balance(display_total, 12, 80, true))\n"), wide_register_format ("%-.9D %-.35P %-.39A %22.108t %!22.132T\n%/" "%48|%-.38A %22.108t %!22.132T\n"), print_format ("%(date)%(cleared ? \" *\" : (uncleared ? \"\" : \" !\"))%(code ? \" (\" + code + \")\" : \"\") %(payee)\n %-34(account) %12(amount)\n%/ %-34(account) %12(amount)%(note ? \" ; \" + note : \"\")\n%/\n"), balance_format - ("%20(total_expr) %(depth_spacer)%-(partial_account)\n"), + ("%20(display_total) %(depth_spacer)%-(partial_account)\n"), equity_format ("\n%D %Y%C%P\n%/ %-34W %12t\n"), plot_amount_format -- cgit v1.2.3