On 19/06/2017 12:16, Roman Root wrote:
any fix for whis bug?
Using the following format, 'ledger -p april budget -f ledger.dat' does
not give me any error:
--budget-format %(justify(scrub(get_at(display_total, 0)), 20, -1, true,
color)) %(justify(get_at(display_total, 1) ?
-scrub(get_at(display_total, 1)) : 0.0, 20, 20 + 1 + 20, true, color))
%(justify(get_at(display_total, 1) ? (get_at(display_total, 0) ?
-(scrub(get_at(display_total, 1) + get_at(display_total, 0))) :
-(scrub(get_at(display_total, 1)))) : -(scrub(get_at(display_total,
0))), 20, 20 + 1 + 20 + 1 + 20, true, color))
%(ansify_if(justify((get_at(display_total, 1) ? (100% *
(get_at(display_total, 0) ? scrub(get_at(display_total, 0)) : 0.0)) /
-scrub(get_at(display_total, 1)) : "NA"), 5, -1, true, false), magenta
if (color and get_at(display_total, 1) and
(abs(quantity(scrub(get_at(display_total, 0))) /
quantity(scrub(get_at(display_total, 1)))) >= 1)))) %(!options.flat ?
depth_spacer : "")%-(ansify_if(partial_account(options.flat), blue if
color))\n%/%$1 %$2 %$3 %$4\n Actual Budgeted
Remaining Used\n%/%(prepend_width ? " " * int(prepend_width) :
"") ---------------- ---------------- ---------------- -----\n
You may copy and paste this into ~/.ledgerrc. Please keep in mind that
the text must be *in one line*.
If I add -X PLN, however, I get 'Error: Cannot negate an uninitialized
value'.
Enjoy,
Life.
--
---
You received this message because you are subscribed to the Google Groups "Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.