From 28f23d09cf113108b6a37147e809e49d68fd54da Mon Sep 17 00:00:00 2001 From: "Thomas R. Koll" Date: Fri, 18 Dec 2015 08:38:04 +0100 Subject: [PATCH] web: some naming convention would be nice --- hledger-web/Handler/JournalR.hs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hledger-web/Handler/JournalR.hs b/hledger-web/Handler/JournalR.hs index 29ade6c61..a27b6d23e 100644 --- a/hledger-web/Handler/JournalR.hs +++ b/hledger-web/Handler/JournalR.hs @@ -59,20 +59,20 @@ journalTransactionsReportAsHtml _ vd (_,items) = [hamlet| where -- .#{datetransition} itemAsHtml :: ViewData -> (Int, Bool, Bool, Bool, TransactionsReportItem) -> HtmlUrl AppRoute - itemAsHtml VD{..} (n, _, _, _, (t, _, split, _, amt, _)) = [hamlet| - + itemAsHtml VD{..} (n, _, _, _, (torig, _, split, _, amt, _)) = [hamlet| + #{date} #{elideRight 60 desc} $if showamt \#{mixedAmountAsHtml amt} -$forall p' <- tpostings t - +$forall p' <- tpostings torig +   - #{elideAccountName 40 $ paccount p'} + #{elideAccountName 40 $ paccount p'} #{mixedAmountAsHtml $ pamount p'}   @@ -86,7 +86,7 @@ $forall p' <- tpostings t -- datetransition | newm = "newmonth" -- | newd = "newday" -- | otherwise = "" :: String - (firstposting, date, desc) = (False, show $ tdate t, tdescription t) + (firstposting, date, desc) = (False, show $ tdate torig, tdescription torig) -- acctquery = (here, [("q", pack $ accountQuery acct)]) showamt = not split || not (isZeroMixedAmount amt)