Re: Transaction does not balance

2021-12-08 Thread psionl0
"Maybe you could give an example, so it's clearer". When I tried POliveira's original example using the @@ option I couldn't get an output (I don't know why). I have since tried an example of my own and these options appear to work as desired: 2021/01/01 * Stock up Assets:Fruit 100

Re: Transaction does not balance

2021-12-08 Thread Martin Michlmayr
* psionl0 [2021-12-07 19:18]: > Ledger doesn't need to "know" the conversion rate when a transaction > contains multiple currencies. It just has to "assume" that whatever > the exchange rate is will balance the transaction (ie assume > nothing). Your "assume nothing" is to assume something. I

Re: Transaction does not balance

2021-12-07 Thread psionl0
I must admit that I am also puzzled why the transaction needs to be "balanced" when a post involves multiple currencies/commodities. In the first example, ledger produces the following balance report. 10.00 GBP -20.00 USD Assets 10.00 GBPBank1 -15.00

Re: Transaction does not balance

2021-12-07 Thread Martin Michlmayr
* POliveira [2021-12-07 05:31]: > I was reading the manual and trying to sort out how to use exchange amounts > in this case, but without success. > Can you exemplify how this transaction could be recorded in a single entry > using explicit exchange rates/amounts? You can use any of the

Re: Transaction does not balance

2021-12-07 Thread POliveira
Thanks Martin. I was reading the manual and trying to sort out how to use exchange amounts in this case, but without success. Can you exemplify how this transaction could be recorded in a single entry using explicit exchange rates/amounts? On Tuesday, December 7, 2021 at 2:38:22 PM UTC+4 Martin

Re: Transaction does not balance

2021-12-07 Thread Martin Michlmayr
* POliveira [2021-12-07 01:05]: > 2021/05/31 * Currency Exchange > Assets:Paypal15.00 EUR > Assets:Paypal -20.00 USD Typically, you should specify an exchange rate with @ or @@ to make the relationship between two currencies clear. However, if there are only two

Transaction does not balance

2021-12-07 Thread POliveira
Hi, I am trying to record a multi-currency exchange transaction. Say I have an online multi-currency wallet like Paypal where I hold 20 USD and 0 EUR. Additionally, I have a GBP bank account (Bank 1) and a EUR bank account (Bank 2) I want to convert my 20 USD to GBP, therefore I convert them

Re: Error: Transaction does not balance

2009-12-20 Thread John Wiegley
On Dec 20, 2009, at 5:39 PM, thierry wrote: I found the following test case where - it balances correctly with ledger v2.6.2 - it balances with error with ledger git I believe there is something around locale decimal separator, as I am in Europe/France, and decimal separator is a comma ,