Daniele Nicolodi
unread,Dec 18, 2018, 3:30:38 AM12/18/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bean...@googlegroups.com
Hello,
I'm trying to write an importer for some account statements that report
operations in different currencies. For example transferring USD to EUR.
Those statements report the amount paid for the transaction (in USD),
the total fees (in USD), the amount converted (that could be obtained
from the previous two amounts), the amount transferred (in EUR), and the
exchange rate, oddly in EUR per 1 USD, rather than the other way around.
To enter this transaction I would like to enter something like:
2018-12-11 * "TRANSFER" "Foo"
Expenses:Unknown 20.00 EUR @@ 22.74 USD
Expenses:Fees:Transfer 1.32 USD
Assets:Checking -24.06 USD
but I haven't found a way to specify the total cost with the @@ syntax
in the ingest framework.
As an alternative solution I can simply convert the total price into
unit price, but this introduces rounding errors, and I would like to
avoid to think about those.
Am I missing something or what I would like to do is not possible?
Thank you.
Best,
Dan