Skip to content

Journal entry filename should have bean in name - #63

Closed
dumbPy wants to merge 1 commit into
jbms:masterfrom
dumbPy:patch/journal_entry_check
Closed

dumbPy wants to merge 1 commit into
jbms:masterfrom
dumbPy:patch/journal_entry_check

Conversation

@dumbPy

@dumbPy dumbPy commented Aug 6, 2020

Copy link
Copy Markdown
Contributor

Continuing conversation from here

beancount.ingest.importer.ImporterProtocol based importers add filename to meta of each transaction.
Hence they are being classified as journal entry too.
This causes the beancount-import to pick Imported entry's narration over manually entered transaction's narration.
Since journal has .bean/.beancount extension, that can be an added filter. Statement names almost never contain the word bean.

Tested.

beancount.ingest.importer.ImporterProtocol based importers add filename
to each transaction. Hence they are classified as journal entry too
Since journal has bean/beancount extension, that can be an added filter
@coveralls

coveralls commented Aug 6, 2020 •

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 145

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.09%) to 66.842%

Files with Coverage Reduction New Missed Lines %
beancount_import/matching.py 1 89.79%
Totals Coverage Status
Change from base Build 135: 0.09%
Covered Lines: 4470
Relevant Lines: 6486

💛 - Coveralls

@dumbPy dumbPy mentioned this pull request Aug 6, 2020
@jbms

jbms commented Aug 6, 2020

Copy link
Copy Markdown
Owner

I think it might be better to just strip off the filename metadata when passing the entries to beancount-import, since there isn't really a standard filename extension for beancount.

@dumbPy

dumbPy commented Aug 7, 2020

Copy link
Copy Markdown
Contributor Author

Handled in ImporterSource #62

@dumbPy dumbPy closed this Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants