Anonymize original postings

This commit is contained in:
Moritz Kiefer 2018-10-11 08:02:50 +02:00 committed by Simon Michael
parent 0d6803e4b5
commit ec1b31f7ba

View File

@ -106,6 +106,7 @@ anonymise j
pAnons p = p { paccount = T.intercalate (T.pack ":") . map anon . T.splitOn (T.pack ":") . paccount $ p
, pcomment = T.empty
, ptransaction = fmap tAnons . ptransaction $ p
, porigin = pAnons <$> porigin p
}
tAnons txn = txn { tpostings = map pAnons . tpostings $ txn
, tdescription = anon . tdescription $ txn