Corrected some math used by the budget command
This commit is contained in:
parent
91a99fc88e
commit
920dbc3f00
1 changed files with 5 additions and 5 deletions
10
src/report.h
10
src/report.h
|
|
@ -411,19 +411,19 @@ public:
|
|||
OPTION__(report_t, budget_format_, CTOR(report_t, budget_format_) {
|
||||
on(none,
|
||||
"%(justify(scrub(get_at(total_expr, 0)), 12, -1, true, color))"
|
||||
" %(justify(scrub(- get_at(total_expr, 1)), 12, "
|
||||
" %(justify(-scrub(get_at(total_expr, 1)), 12, "
|
||||
" 12 + 1 + 12, true, color))"
|
||||
" %(justify(scrub(get_at(total_expr, 1) + "
|
||||
" get_at(total_expr, 0)), 12, "
|
||||
" 12 + 1 + 12 + 1 + 12, true, color))"
|
||||
" %(ansify_if("
|
||||
" justify((get_at(total_expr, 1) ? "
|
||||
" scrub((100% * get_at(total_expr, 0)) / "
|
||||
" - get_at(total_expr, 1)) : 0), "
|
||||
" (100% * scrub(get_at(total_expr, 0))) / "
|
||||
" -scrub(get_at(total_expr, 1)) : 0), "
|
||||
" 5, -1, true, false),"
|
||||
" magenta if (color and get_at(total_expr, 1) and "
|
||||
" (abs(quantity(get_at(total_expr, 0)) / "
|
||||
" quantity(get_at(total_expr, 1))) >= 1))))"
|
||||
" (abs(quantity(scrub(get_at(total_expr, 0))) / "
|
||||
" quantity(scrub(get_at(total_expr, 1)))) >= 1))))"
|
||||
" %(!options.flat ? depth_spacer : \"\")"
|
||||
"%-(ansify_if(partial_account(options.flat), blue if color))\n"
|
||||
"%/%$1 %$2 %$3 %$4\n%/"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue