odd behavior on -A was bcause of missing parentheses around if statements

This commit is contained in:
Justin Le 2017-03-27 13:13:43 -07:00
parent 4794f5db36
commit 4b0ba0f011

View File

@ -133,8 +133,8 @@ balanceviewReport BalanceView{..} CliOpts{reportopts_=ropts, rawopts_=raw} j = d
mergedTabl
+====+
row "Total"
(sumAmts ++ if row_total_ ropts' then [totsum] else []
++ if average_ ropts' then [totavg] else []
(sumAmts ++ (if row_total_ ropts' then [totsum] else [])
++ (if average_ ropts' then [totavg] else [])
)
putStrLn bvtitle
putStrLn $ renderBalanceReportTable totTabl