Skip to content

Commit

Permalink
Merge pull request #1033 from 8848digital/custom_bank_reconciliation_…
Browse files Browse the repository at this point in the history
…tool

fix: get withdraw and deposit for erp transaction
  • Loading branch information
aasif-patel authored Jan 15, 2025
2 parents d6e44df + 2e622a3 commit f0b0792
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def get_erp_transaction(bank_account, company, from_statement_date=None, to_stat
transaction_list = frappe.db.get_all(
"Bank Transaction", {"bank_account": bank_account, "status": "Unreconciled"}, pluck="name"
)
account = frappe.db.get_value("Bank Account", bank_account, 'account')
result = []
for i in transaction_list:
transaction = frappe.get_doc("Bank Transaction", i)
Expand All @@ -155,7 +156,7 @@ def get_erp_transaction(bank_account, company, from_statement_date=None, to_stat
if i['doctype'] == "Journal Entry":
list = frappe.db.get_all("Journal Entry Account",
{
'account': "IDFC Bank - PP Ltd",
'account': account,
'parent': i.name
},
['credit_in_account_currency', 'debit_in_account_currency', 'parent']
Expand Down

0 comments on commit f0b0792

Please sign in to comment.