cli: anonymize transaction code also
This commit is contained in:
parent
0a273561f7
commit
6dbe925eed
@ -42,6 +42,7 @@ instance Anon Posting where
|
|||||||
instance Anon Transaction where
|
instance Anon Transaction where
|
||||||
anon txn = txnTieKnot $ txn { tpostings = map anon . tpostings $ txn
|
anon txn = txnTieKnot $ txn { tpostings = map anon . tpostings $ txn
|
||||||
, tdescription = anon . tdescription $ txn
|
, tdescription = anon . tdescription $ txn
|
||||||
|
, tcode = anon . tcode $ txn
|
||||||
, tcomment = T.empty
|
, tcomment = T.empty
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -33,3 +33,8 @@ $ hledger -f- print --anon
|
|||||||
|
|
||||||
$ hledger -f- reg --anon
|
$ hledger -f- reg --anon
|
||||||
> !/borrow/
|
> !/borrow/
|
||||||
|
|
||||||
|
# Basic tests on transaction code
|
||||||
|
|
||||||
|
$ hledger -f- print --anon
|
||||||
|
> !/receipt/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user