diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-24 15:06:43 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-24 15:06:43 -0400 |
commit | 1ecf62ce25e01def8a0df0a7c59047148c2cd734 (patch) | |
tree | 01afd48f7403482cc6be320a28c3b3ad3707fdf2 /src/report.h | |
parent | c4207a79d7250f95d259678d0e4077a2a39b1d32 (diff) | |
download | fork-ledger-1ecf62ce25e01def8a0df0a7c59047148c2cd734.tar.gz fork-ledger-1ecf62ce25e01def8a0df0a7c59047148c2cd734.tar.bz2 fork-ledger-1ecf62ce25e01def8a0df0a7c59047148c2cd734.zip |
Output "@ AMOUNT" cost in the print report
Diffstat (limited to 'src/report.h')
-rw-r--r-- | src/report.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h index 84f120df..7585493f 100644 --- a/src/report.h +++ b/src/report.h @@ -504,10 +504,12 @@ public: " %(xact.uncleared ? (cleared ? \"* \" : (pending ? \"! \" : \"\")) : \"\")" "%-34(account)" " %12(calculated ? \"\" : justify(scrub(amount), 12, -1, true))" + "%(has_cost & !priced ? \" @ \" + justify(scrub(cost / amount), 0) : \"\")" "%(comment | \"\")\n%/" " %(xact.uncleared ? (cleared ? \"* \" : (pending ? \"! \" : \"\")) : \"\")" "%-34(account)" " %12(calculated ? \"\" : justify(scrub(amount), 12, -1, true))" + "%(has_cost & !priced ? \" @ \" + justify(scrub(cost / amount), 0) : \"\")" "%(comment | \"\")\n%/\n"); }); |