-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GenericImporterSource - which data/field is used for the source_desc field? #204
Comments
I see the description in the GenericImporter and how the |
Any update/feedback on this? Thanks. |
@kosli if isinstance(posting.meta, dict):
posting.meta["source_desc"] = entry.narration
posting.meta["date"] = entry.date to if isinstance(posting.meta, dict):
posting.meta.setdefault("source_desc", entry.narration)
posting.meta.setdefault("date", entry.date) So it sets narration to |
I have written a GenericImporter for my bank statements and I am automatically setting the
payee
andnarration
based on my "raw" data / statements.Sometimes I leave the
narration
empty, which seems to be a problem with beancount-importer. It seems that the narration field is used/copied to the source_desc field which is used for the recognition of already confirmed transactions.As my bank statements have their "raw" data which I would like for the
source_desc
matching, I tried to add them straight as metadata, but they are getting overwritten by beancount-importer.How can i define what beancount-importer uses for the
source_desc
field?The text was updated successfully, but these errors were encountered: