Hi Martin,
I'm working on creating some importers and I've run into an issue with imported transactions not matching existing transactions. I think I know what the problem is and I'm wondering if perhaps I'm missing something or if it might be a bug/oversight.
The issue is that my current transactions look something like this:
2016-05-15 * "In-n-out Burger"
Expenses:Dining-Entertainment 12.56 USD
Liabilities:Chase:CreditCard
When I run my importer, it doesn't match this transaction due to the fact that the second posting is "automatic". I found the relevant code in similar.py:
def amounts_map(entry):
...
for posting in entry.postings:
# Skip interpolated postings.
if posting.meta and interpolate.AUTOMATIC_META in posting.meta:
continue
...
Should it really be ignoring the automatic postings in this case? I've tested it and if I add the amount to the second posting, it will see it as a duplicate as expected. The syntax doesn't require amounts on all legs of the transactions, right?
Shane