mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 02:37:12 +03:00
print: don't add decimal places in assertion/assignment amounts either (#1465)
This commit is contained in:
parent
a91a2ed2ed
commit
0274b30742
@ -981,8 +981,8 @@ journalApplyCommodityStyles j@Journal{jtxns=ts, jpricedirectives=pds} =
|
||||
fixtransaction t@Transaction{tpostings=ps} = t{tpostings=map fixposting ps}
|
||||
fixposting p = p{pamount=styleMixedAmount styles $ pamount p
|
||||
,pbalanceassertion=fixbalanceassertion <$> pbalanceassertion p}
|
||||
-- balance assertion amounts are always displayed, eg by print, at full precision, per docs
|
||||
fixbalanceassertion ba = ba{baamount=setFullPrecision $ styleAmount styles $ baamount ba}
|
||||
-- balance assertion amounts are always displayed (by print) at full precision, per docs
|
||||
fixbalanceassertion ba = ba{baamount=styleAmountExceptPrecision styles $ baamount ba}
|
||||
fixpricedirective pd@PriceDirective{pdamount=a} = pd{pdamount=styleAmountExceptPrecision styles a}
|
||||
|
||||
-- | Get the canonical amount styles for this journal, whether (in order of precedence):
|
||||
|
@ -219,8 +219,8 @@ account4 the:remainder
|
||||
|
||||
$ ./csvtest.sh
|
||||
2009-09-10 Flubber Co
|
||||
assets:myacct $50.000 = $321.000
|
||||
income:unknown $-50.000 = $123.000
|
||||
assets:myacct $50.000 = $321
|
||||
income:unknown $-50.000 = $123
|
||||
expenses:tax $0.234 ; VAT
|
||||
the:remainder
|
||||
|
||||
|
@ -150,8 +150,8 @@ $ hledger -f- print
|
||||
equity:opening/closing balances
|
||||
|
||||
2019-12-31 closing balances
|
||||
assets:a1 $-3 = $0
|
||||
assets:a2 £-10 = £0
|
||||
assets:a1 $-3 = $0.00
|
||||
assets:a2 £-10 = £0.00
|
||||
equity:opening/closing balances
|
||||
|
||||
>=0
|
||||
|
Loading…
Reference in New Issue
Block a user