On Monday, December 9, 2019 at 4:08:00 AM UTC-5, John Wiegley wrote: > > > Did you try `ledger print --raw`? That should preserve all information > about > the transaction, including whatever was in the original file, exactly as > you > had written there. > > John >
Yes, I tried that command but it has 2 undesirable outcomes: 1) It strips any comments in the file that are between 2 transactions. Only comments inside a transaction are preserved. I like to insert block-style comments between transactions for documentary and journaling purposes. 2) It strips net zero transactions, such as the following: 2019/01/01 Acme Bank Assets:Bank:Acme EUR 0 = EUR 688.68 I sometimes use single line, net zero transactions to make balance assertions and reconcile accounts against statements. This is also part of my journaling process where I am testing that all transactions for an account up to that date are present and the balance is correct. Maybe this usage is unexpected or illegal but it works to do balance assertions. However, the `ledger print --raw` command strips these single-line balance assertion transactions from the output, probably because the transaction is net zero. BTW, I love Ledger. It has truly transformed my life, so thanks so much for creating it!! M. -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/beded023-bb2b-45e6-9116-fbd70fc59ae6%40googlegroups.com.
