debug: show aliasing and auto postings with other reading (level 7)
This commit is contained in:
parent
e2bccf8645
commit
6cc896a8fe
@ -294,7 +294,7 @@ accountNameApplyAliases aliases a = accountNameWithPostingType atype aname'
|
|||||||
where
|
where
|
||||||
(aname,atype) = (accountNameWithoutPostingType a, accountNamePostingType a)
|
(aname,atype) = (accountNameWithoutPostingType a, accountNamePostingType a)
|
||||||
aname' = foldl
|
aname' = foldl
|
||||||
(\acct alias -> dbg6 "result" $ aliasReplace (dbg6 "alias" alias) (dbg6 "account" acct))
|
(\acct alias -> dbg7 "result" $ aliasReplace (dbg6 "alias" alias) (dbg6 "account" acct))
|
||||||
aname
|
aname
|
||||||
aliases
|
aliases
|
||||||
|
|
||||||
|
|||||||
@ -120,13 +120,13 @@ tmPostingRuleToFunction querytxt pr =
|
|||||||
Just n -> \p ->
|
Just n -> \p ->
|
||||||
-- Multiply the old posting's amount by the posting rule's multiplier.
|
-- Multiply the old posting's amount by the posting rule's multiplier.
|
||||||
let
|
let
|
||||||
pramount = dbg6 "pramount" $ head $ amounts $ pamount pr
|
pramount = dbg7 "pramount" $ head $ amounts $ pamount pr
|
||||||
matchedamount = dbg6 "matchedamount" $ pamount p
|
matchedamount = dbg7 "matchedamount" $ pamount p
|
||||||
-- Handle a matched amount with a total price carefully so as to keep the transaction balanced (#928).
|
-- Handle a matched amount with a total price carefully so as to keep the transaction balanced (#928).
|
||||||
-- Approach 1: convert to a unit price and increase the display precision slightly
|
-- Approach 1: convert to a unit price and increase the display precision slightly
|
||||||
-- Mixed as = dbg6 "multipliedamount" $ n `multiplyMixedAmount` mixedAmountTotalPriceToUnitPrice matchedamount
|
-- Mixed as = dbg7 "multipliedamount" $ n `multiplyMixedAmount` mixedAmountTotalPriceToUnitPrice matchedamount
|
||||||
-- Approach 2: multiply the total price (keeping it positive) as well as the quantity
|
-- Approach 2: multiply the total price (keeping it positive) as well as the quantity
|
||||||
Mixed as = dbg6 "multipliedamount" $ n `multiplyMixedAmountAndPrice` matchedamount
|
Mixed as = dbg7 "multipliedamount" $ n `multiplyMixedAmountAndPrice` matchedamount
|
||||||
in
|
in
|
||||||
case acommodity pramount of
|
case acommodity pramount of
|
||||||
"" -> Mixed as
|
"" -> Mixed as
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user