generated from felixm/defaultpy
Add tags to mapping
This commit is contained in:
@@ -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}'.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user