refactor: layout

This commit is contained in:
Simon Michael 2011-06-28 22:31:56 +00:00
parent 64f0c22e25
commit d83553661f

View File

@ -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