Skip to content

Commit

Permalink
feat: msgprint on no record found
Browse files Browse the repository at this point in the history
  • Loading branch information
hrishikesh8848 committed Jan 16, 2025
1 parent a157c3a commit 3489ecb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_bank_transaction(bank_account, company, from_statement_date=None, to_sta
"unallocated_amount",
],
)
if len[bank_transactn_list] == 0:
if len(bank_transactn_list) == 0:
frappe.msgprint("No records found")

return bank_transactn_list
Expand Down Expand Up @@ -185,7 +185,7 @@ def get_erp_transaction(bank_account, company, from_statement_date=None, to_stat
result.append(payment)
else:
result.append(payment)
if len[result] == 0:
if len(result) == 0:
frappe.msgprint("No records found")
return result

Expand Down

0 comments on commit 3489ecb

Please sign in to comment.