On Wed, Sep 16, 2020 at 2:15 PM Daniele Nicolodi <dani...@grinta.net> wrote:
> On 16/09/2020 18:27, redst...@gmail.com wrote: > > > B) Hide the conversion by booking it into a holding account: > > > 2020-01-01 * "Furniture" > > > Liabilities:CreditCard -30 EUR > > > Liabilities:Hold -35 USD @ 0.75 EUR > > > Liabilities:Hold 30 EUR > > > Expenses:Table 25 USD > > > Expenses:Chair 15 USD > > > > Your example does not balance, but even after fixing the math, I am > not > > sure it would owrk as intended: a transaction like > > > > 2020-09-16 * "Test" > > Liabilities:Hold -20 USD @ 0.75 EUR > > Liabilities:Hold 15 EUR > > > > balances, but is not zero sum. > > > > > > What do you mean by "not zero sum"? How does this affect you? > > This transactions balances to: > > Assets > Equity > Expenses > Income > Liabilities:Hold 15.00 EUR > Liabilities:Hold -20.00 USD > > because a cost and not a price is (correctly) used to convert from USD > to EUR. This makes it very difficult to define an invariant on the > Liabilities:Hold account and thus check that no mistakes have been made > in the booking. > > Note that when the currency trading accounts method is there by default, the balance will actually always be zero: It'll be: Assets Equity:Currency:USD 20.00 ESD Equity:Currency:EUR -15.00 EUR Expenses Income Liabilities:Hold 15.00 EUR Liabilities:Hold -20.00 USD > Cheers, > Dan > > -- > You received this message because you are subscribed to the Google Groups > "Beancount" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to beancount+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/f2cbf080-4e73-347b-d2ac-0e7444825cda%40grinta.net > . > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhOD5bci5qJnpSRo6hmixs%3DKJkL6vXUDAOkHQnTTqZDsng%40mail.gmail.com.