Hi,

When I use $account  for automated transactions it always seem to point to 
the *2nd* account

2015/11/10   Phonecompany
       Expenses:phone costs                         $ 30
      * Liabilities:Creditors:Phonecompany*

Is there a way to reference the *first* account? 

I'm using an automated transaction to deduct VAT from gross amounts that I 
entered, but the VAT has to be deducted from the Expenses account, and not 
from the Liabilities account. Of course I could switch the accounts and 
then everything would be fine, but the problem is I have hundreds of 
entries. Below is the automated transaction code to calculate the VAT. (It 
doesn't work to explicitly reference the first account because it changes 
with every entry.)

*_myvat=1.21*

*= expr 'tag("VAT") == "normal"'*

*    Assets:VAT reclaim            (amount - (amount/_myvat))*

*     $account                           ((amount/_myvat))*

*     $account                          (-amount)*


Of course I could just move the calculate the VAT based on amount and then 
deduct it from *Expenses* and add it to *Assets:Vat reclaim *but then I 
wouldn't be able to report the expenses without VAT for a specific account.



Best regards,


Dimitri


-- 

--- 
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