Merge pull request #43640 from frappe/mergify/bp/version-14-hotfix/pr-43638

fix: Use `ref_doc.get()` for `party_account_currency` (backport #43638)
This commit is contained in:
Smit Vora
2024-10-14 13:59:05 +05:30
committed by GitHub

View File

@@ -538,7 +538,7 @@ def make_payment_request(**args):
)
party_type = args.get("party_type") or "Customer"
party_account_currency = ref_doc.party_account_currency
party_account_currency = ref_doc.get("party_account_currency")
if not party_account_currency:
party_account = get_party_account(party_type, ref_doc.get(party_type.lower()), ref_doc.company)