mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-10 05:39:31 +03:00
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 acct amt = posting {paccount=acct, pamount=mixed amt}
|
||||
|
||||
-- XXX once rendered user output, but just for debugging now; clean up
|
||||
showPosting :: Posting -> String
|
||||
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
|
||||
ledger3ishlayout = False
|
||||
acctnamewidth = if ledger3ishlayout then 25 else 22
|
||||
|
@ -122,7 +122,7 @@ tests_showTransactionUnelided = [
|
||||
]
|
||||
]
|
||||
|
||||
-- XXX overlaps showPosting
|
||||
-- cf showPosting
|
||||
showTransaction' :: Bool -> Transaction -> String
|
||||
showTransaction' elide t =
|
||||
unlines $ [descriptionline]
|
||||
|
Loading…
Reference in New Issue
Block a user