show posting dates in debug output
This commit is contained in:
parent
d1a3516c70
commit
88f18adbc4
@ -81,9 +81,10 @@ posting = nullposting
|
|||||||
post :: AccountName -> Amount -> Posting
|
post :: AccountName -> Amount -> Posting
|
||||||
post acct amt = posting {paccount=acct, pamount=mixed amt}
|
post acct amt = posting {paccount=acct, pamount=mixed amt}
|
||||||
|
|
||||||
|
-- XXX once rendered user output, but just for debugging now; clean up
|
||||||
showPosting :: Posting -> String
|
showPosting :: Posting -> String
|
||||||
showPosting p@Posting{paccount=a,pamount=amt,ptype=t} =
|
showPosting p@Posting{paccount=a,pamount=amt,ptype=t} =
|
||||||
unlines $ [concatTopPadded [showaccountname a ++ " ", showamount amt, showComment (pcomment p)]]
|
unlines $ [concatTopPadded [show (postingDate p) ++ " ", showaccountname a ++ " ", showamount amt, showComment (pcomment p)]]
|
||||||
where
|
where
|
||||||
ledger3ishlayout = False
|
ledger3ishlayout = False
|
||||||
acctnamewidth = if ledger3ishlayout then 25 else 22
|
acctnamewidth = if ledger3ishlayout then 25 else 22
|
||||||
|
|||||||
@ -122,7 +122,7 @@ tests_showTransactionUnelided = [
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
-- XXX overlaps showPosting
|
-- cf showPosting
|
||||||
showTransaction' :: Bool -> Transaction -> String
|
showTransaction' :: Bool -> Transaction -> String
|
||||||
showTransaction' elide t =
|
showTransaction' elide t =
|
||||||
unlines $ [descriptionline]
|
unlines $ [descriptionline]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user