Skip to content

Commit

Permalink
fix: #202 - missing checks during matching for currency and number
Browse files Browse the repository at this point in the history
  • Loading branch information
JonBoyleCoding committed Sep 3, 2023
1 parent e790b64 commit 09f1432
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beancount_import/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ def _get_matches(
if posting_date and posting_date != date:
continue

# Verify that number is in fuzzy range
if abs(sp.number - amount.number) > self.fuzzy_match_amount:
continue

key = _entry_and_posting_ids_key(sp.entry, sp.mp)
matches[key] = (sp.entry, sp.mp)
return matches
Expand Down

0 comments on commit 09f1432

Please sign in to comment.