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 | ||||
|     anon txn = txnTieKnot $ txn { tpostings = map anon . tpostings $ txn | ||||
|                                 , tdescription = anon . tdescription $ txn | ||||
|                                 , tcode = anon . tcode $ txn | ||||
|                                 , tcomment = T.empty | ||||
|                                 } | ||||
| 
 | ||||
|  | ||||
| @ -33,3 +33,8 @@ $ hledger -f- print --anon | ||||
| 
 | ||||
| $ hledger -f- reg --anon | ||||
| > !/borrow/ | ||||
| 
 | ||||
| # Basic tests on transaction code | ||||
| 
 | ||||
| $ hledger -f- print --anon | ||||
| > !/receipt/ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user