mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 23:54:59 +00:00
fix: empty category in Plaid
This commit is contained in:
@@ -239,11 +239,12 @@ def new_bank_transaction(transaction):
|
||||
withdrawal = 0.0
|
||||
|
||||
tags = []
|
||||
try:
|
||||
tags += transaction["category"]
|
||||
tags += [f'Plaid Cat. {transaction["category_id"]}']
|
||||
except KeyError:
|
||||
pass
|
||||
if transaction["category"]:
|
||||
try:
|
||||
tags += transaction["category"]
|
||||
tags += [f'Plaid Cat. {transaction["category_id"]}']
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
if not frappe.db.exists(
|
||||
"Bank Transaction", dict(transaction_id=transaction["transaction_id"])
|
||||
|
||||
Reference in New Issue
Block a user