cli: anonymize transaction code also

This commit is contained in:
Mykola Orliuk 2019-10-19 22:20:39 +02:00 committed by Simon Michael
parent 0a273561f7
commit 6dbe925eed
2 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,7 @@ instance Anon Posting where
instance Anon Transaction where
anon txn = txnTieKnot $ txn { tpostings = map anon . tpostings $ txn
, tdescription = anon . tdescription $ txn
, tcode = anon . tcode $ txn
, tcomment = T.empty
}

View File

@ -33,3 +33,8 @@ $ hledger -f- print --anon
$ hledger -f- reg --anon
> !/borrow/
# Basic tests on transaction code
$ hledger -f- print --anon
> !/receipt/