Add tags to mapping

This commit is contained in:
2025-03-02 20:24:47 -05:00
parent 35e1c1039e
commit 3e4a284692
5 changed files with 44 additions and 39 deletions

View File

@@ -74,13 +74,7 @@ def apply_mappings(transactions: List[Transaction], mappings: Dict[str, Mapping]
mapping.count > 0
), f"{mapping} used by {t} but count is not greater than '0'."
mapping.count -= 1
t.account2 = mapping.account2
if mapping.narration:
t.narration = mapping.narration
if mapping.payee:
t.payee = mapping.payee
t.mapping = mapping
else:
logging.warning(f"No mapping for '{t}'.")