I've got my first importer running, mostly works, but the cost I'm
providing doesn't seem to be making it all the way through.  A debug print
shows this as the transaction I'm returning:

Transaction(meta={'filename': '/home/...csv', 'lineno': 1},
date=datetime.date(2018, 1, 1), flag='*', payee=None, narration='Bought 2.0
ABC for $204.00 USD', tags=frozenset(), links={None},
postings=[Posting(account='Assets:MyInstitution:ABC', units=2.0 ABC,
*cost=Cost(number='102.00',
currency='USD', date=None, label=None)*, price=102.00 USD, flag=None,
meta=None), Posting(account='Assets:MyInstitution:USD', units=-204.00 USD,
cost=None, price=None, flag=None, meta=None)])

But the final transaction printed by the importer has no cost:

2018-01-01 * "Bought 2.0 ABC for $204.00 USD" ^None
  Assets:MyInstitution:ABC          2.0 ABC* {} *@ 102.00 USD
  Assets:MyInstitution:USD      -204.00 USD

Any ideas?

(PS: Also not sure how to omit links.  If I return `None`, `""`, or `{}`,
the importer crashes.  If I return `{None}` it complete but renders the
annoying ^None link....)

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAFXPr0sgmMBepK4gkuagRO4msdF%2BFmWrxtjAba58Nta2TR16rg%40mail.gmail.com.

Reply via email to