On Thu, Dec 13, 2018 at 8:11 AM Martin Michlmayr <[email protected]> wrote:
>
> I just had a light bulb moment and wanted to share.  (This idea is
> obviously to many but I am a bit slow ;)
>
> I have an Assets:Transfer account which I use for transfers.  So when I
> transfer from bank A to B it goes A -> Assets:Transfer and
> Assets:Transfer -> B.  Same for credit card payments, etc.  Eventually
> (or sometimes) Assets:Transfer should go to 0.
>
> Of course, sometimes I don't end up with 0 and I need to find out why.
> This can be tricky since there are so many transactions.  I ended up
> with -339.47 today and of course there was no transaction for 339.47.
> So I was wondering how to make it easier.  I was thinking: "what if I
> could just match all amounts".
>
> Turns out you can:
>
> ledger -f 2018 bal assets:transfer -l "commodity == 'USD'" --account 
> "abs(amount)"
>           229.45 USD  229.45 USD:Assets:Transfer
>          -253.22 USD  253.22 USD:Assets:Transfer
>          -315.70 USD  315.70 USD:Assets:Transfer
> --------------------
>          -339.47 USD
>
> Now I can figure out where the matching transactions are.
>
Greetings

I treat bank to bank or even avccount to account transfers as a
transaction. Then
ledger is quite happy to let me know when things don't balance. You
bet its extra
work - - - but when she balances - - - there are no errors!

Just one very pleased user of 'ledger'!!

Dee

-- 

--- 
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/d/optout.

Reply via email to