fix rare bug in balance report output if the budgeted amount happens to be zero.

See emails in group from John Rakestraw circa November 2011
This commit is contained in:
Craig Earls 2014-08-24 18:40:00 -07:00
parent ce31029236
commit fa46f3442d

View file

@ -465,8 +465,8 @@ public:
" 12 + 1 + 12 + 1 + 12, true, color))"
" %(ansify_if("
" justify((get_at(display_total, 1) ? "
" (100% * scrub(get_at(display_total, 0))) / "
" -scrub(get_at(display_total, 1)) : 0), "
" (100% * quantity(scrub(get_at(display_total, 0)))) / "
" -quantity(scrub(get_at(display_total, 1))) : 0), "
" 5, -1, true, false),"
" magenta if (color and get_at(display_total, 1) and "
" (abs(quantity(scrub(get_at(display_total, 0))) / "