From 4abd029bae4cd246f1943f7fb617fa0f9756422b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 10 Jan 2017 08:58:11 -0800 Subject: [PATCH] print: ensure 0 amounts also appear in the "debit" field --- hledger/Hledger/Cli/Print.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger/Hledger/Cli/Print.hs b/hledger/Hledger/Cli/Print.hs index b93a41430..1a9a02092 100644 --- a/hledger/Hledger/Cli/Print.hs +++ b/hledger/Hledger/Cli/Print.hs @@ -131,7 +131,7 @@ postingToCSV p = let amount = showAmount a_ in let commodity = T.unpack c in let credit = if q < 0 then showAmount $ negate a_ else "" in - let debit = if q > 0 then showAmount a_ else "" in + let debit = if q >= 0 then showAmount a_ else "" in account:amount:commodity:credit:debit:status:comment:[]) amounts where