Skip to content

Commit

Permalink
Merge pull request #45668 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-45619

feat: set bank account of company to default company bank account fro… (backport #45619)
  • Loading branch information
ruthra-kumar authored Feb 3, 2025
2 parents 7bfe052 + dac5307 commit 50c26ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2481,6 +2481,7 @@ def get_payment_entry(
pe.paid_amount = paid_amount
pe.received_amount = received_amount
pe.letter_head = doc.get("letter_head")
pe.bank_account = frappe.db.get_value("Bank Account", {"is_company_account": 1, "is_default": 1}, "name")

if dt in ["Purchase Order", "Sales Order", "Sales Invoice", "Purchase Invoice"]:
pe.project = doc.get("project") or reduce(
Expand Down

0 comments on commit 50c26ba

Please sign in to comment.