On Tuesday, April 7, 2020 at 12:48:41 PM UTC+8, Randy wrote: > > I'd like to use the `assert` directive to do a balance assertion of an > account after `include`ing a journal file. I can't add the balance > assertion to the included journal itself. I tried something like this: > ..............
> > I realized I could just add a transaction that assigns the balance of > assets:checking, but that doesn't seem like the best way to do it. > > Why the need for an unbalanced transaction? It violates the bookkeeping principle and ignores the fact that the money for the checking account had to come from somewhere. Just run ledger with the --equity option on the original journal file. If you want to change the balance of the checking account then decide which of the original accounts the money came from. If it came from none of them then include an extra account to source the change. -- --- 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/fbb1d303-28b4-4f39-b4c0-a07200d40115%40googlegroups.com.
