Hello, My solution is to have one file per bank account, and the transfers are marked with an UUID tag, so they will only be considered by ledger, when seen for the first time.
Also, when including multiple files, you have to be very careful with the balance assertions, as balance is calculated in parsing order, and not by ordering all the transactions in memory. My solution for this is a little script that'll merge/sort all the files to one single journal, and then I'll run ledger on that. Regards, Dan On Tue, 6 Mar 2018 at 09:14 Alexandre Rademaker <aradema...@gmail.com> wrote: > > What about one bank account per file? In that case I need a way to avoid > duplicate a transaction that envolve two accounts of different files. I > remember that in the pass we had a discussion about unique transaction ids > in the metadata. Do ledger and hledeger support it? > > Alexandre > Sent from my iPhone > > > On 6 Mar 2018, at 05:10, Roderick Mann <rm...@latencyzero.com> wrote: > > > > Oh! I just tried specifying multiple --file options, and that worked. > > > > > > -- > > --- > 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 ledger-cli+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- 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 ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.