diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-19 22:27:10 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-19 22:27:10 -0400 |
commit | 83648af19fd702127e8af98d20938c21c4ad9e0e (patch) | |
tree | b2cdf8ab2db8684bb19ef5e286114e0508adc471 /src/session.cc | |
parent | 5c17da657283ab074cd5d3d45833f6afbaf9ed2d (diff) | |
download | fork-ledger-83648af19fd702127e8af98d20938c21c4ad9e0e.tar.gz fork-ledger-83648af19fd702127e8af98d20938c21c4ad9e0e.tar.bz2 fork-ledger-83648af19fd702127e8af98d20938c21c4ad9e0e.zip |
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".
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 |