Am Freitag, 2. August 2013 23:46:46 UTC+2 schrieb John Wiegley: > > >>>>> rob g <[email protected] <javascript:>> writes: > > > With the following example (similar to the documentation example [1]) > > > 2013/08/01 Adjustment > > Assets:Cash = $10 > > Equity:Adjustments > > > 2013/04/01 Stuff > > Expenses:Stuff $10 > > Assets:Cash > > > 2013/01/01 * Opening Balance > > Assets:Cash $40 > > Equity:Opening Balances > > > I expected to have $10 in Assets:Cash, but I get > > Can you explain why you thought that? Here's where the $40 comes from: > > You set the balance of Cash to $10. > You transferred out $10, now it is 0. > You added $40. > Therefore, the balance is $40. > > It is the sequence of transactions that matters, not their date ordering. > > Thanks, that makes sense and works as expected! I kept my files with newest entries on top, but it's no problem to change that. (ledger -f file.txt --sort d print)
Now I just had to make sure that the cash transactions and adjustments are imported last in my main ledger file. Robert > John > -- --- 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]. For more options, visit https://groups.google.com/groups/opt_out.
