The balance report here is factual: you took out £2455.50 from your bank
account, and ended up with R$9000 or so.

To see the final balance as zero you could exchange all commodities to
either R$ or £ using the -X flag:

    ledger -X £ balance

This may not make the final balance zero if the exchange rates between BRL
and GBP differ between the first and last transactions (i.e. you made gains
or losses due to the exchange rate). This is because -X converts everything
using the most recent exchange rate (Dec 7 in your case).

One change you could make is to add some redundant information to help
catch errors. Instead of giving the absolute amount in an exchange with the
double-@, explicitly put £ on one line of the transaction and $R on the
other. Then use the exchange rate notation to say what the exchange rate
was:

    credito:brl  R$7420.00 @ £0.2695
    equity:startpoint  -£2000.00

On Sat, 12 Dec 2015 21:13 Leonardo Melo <leomel...@gmail.com> wrote:

> I had/decided to exchange some money to a foreign exchange for holidays
> and investments and I would like to record it on Ledger.
>
> So I added the following entries on my ledger:
>
> 2015/01/01 Year start
>     credito:brl                           R$7420.00 @@£2000.00
>     equity:startPoint
> 2015/03/23 * Holidays in Brazil March/2015
>     debitos:ferias                        R$4210.00
>     credito:brl
> 2015/08/01 * GBP to BRL
>     credito:brl                           R$1245.00 @@£250.00
>     assets:bank:current
> 2015/12/07 * GBP to BRL cash exchange
>     credito:especie                        R$1000.00
>     assets:bank:current                     -£205.50
>
> When I look on my balance reports with Ledger, at the very end I get:
>
> --------------------
>            R$9665.00
>            £-2455.50
>
> Which would probably add to zero should these be in the same currency.
>
> Now, I don't get any errors (which happens when postings are not balanced
> or other errors occur) but I'm not sure I should be getting this difference
> at the bottom.
>
> 1. Is it possible to get it to zero? So that my postings balance perfectly
> ( I understand this may not be wrong, but I'm not great with accountancy
> hence I'm not really sure this is even a problem).
>
> 2. Are these two the best ways of adding currency exchange posting to your
> ledger? I remember reading the docs for this but I didn't understand it all
> too well (probably because I don't really understand a lot of accountancy
> to start with)
>
> 3. I know one could say RT*M the answers are there. If that's the case,
> could someone point where in the "manual" that would be. I'd like to
> understand this better, so I'm not just hacking my accounts but rather
> understanding and learning how to take the best out of this.
>
>
> Thanks guys o/
>
> --
>
> ---
> 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.

Reply via email to