From d83553661f8d3b7f1d3cd1d9b0be58a6d5e9a87a Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 28 Jun 2011 22:31:56 +0000 Subject: [PATCH] refactor: layout --- hledger/Hledger/Cli/Register.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hledger/Hledger/Cli/Register.hs b/hledger/Hledger/Cli/Register.hs index 40a0105c0..1209b4ba9 100644 --- a/hledger/Hledger/Cli/Register.hs +++ b/hledger/Hledger/Cli/Register.hs @@ -209,9 +209,9 @@ accountRegisterReport opts j m thisacctmatcher = (label, items) ts = sortBy (comparing tdate) $ filter (matchesTransaction thisacctmatcher) $ jtxns j -- starting balance: if we are filtering by a start date and nothing else, -- the sum of postings to this account before that date; otherwise zero. - (startbal,label, sumfn) | matcherIsNull m = (nullmixedamt,balancelabel,(-)) - | matcherIsStartDateOnly effective m = (sumPostings priorps,balancelabel,(-)) - | otherwise = (nullmixedamt,totallabel,(+)) + (startbal,label, sumfn) | matcherIsNull m = (nullmixedamt, balancelabel, (-)) + | matcherIsStartDateOnly effective m = (sumPostings priorps, balancelabel, (-)) + | otherwise = (nullmixedamt, totallabel, (+)) where priorps = -- ltrace "priorps" $ filter (matchesPosting