mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix: plaid NoneType error #24675
This commit is contained in:
@@ -146,8 +146,9 @@ def sync_transactions(bank, bank_account):
|
|||||||
transactions = get_transactions(bank=bank, bank_account=bank_account, start_date=start_date, end_date=end_date)
|
transactions = get_transactions(bank=bank, bank_account=bank_account, start_date=start_date, end_date=end_date)
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
for transaction in reversed(transactions):
|
if transactions:
|
||||||
result += new_bank_transaction(transaction)
|
for transaction in reversed(transactions):
|
||||||
|
result += new_bank_transaction(transaction)
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
last_transaction_date = frappe.db.get_value('Bank Transaction', result.pop(), 'date')
|
last_transaction_date = frappe.db.get_value('Bank Transaction', result.pop(), 'date')
|
||||||
|
|||||||
Reference in New Issue
Block a user