mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 09:54:47 +00:00
Merge pull request #43638 from Abdeali099/payment-request-fixes
fix: Use `ref_doc.get()` for `party_account_currency`
This commit is contained in:
@@ -582,7 +582,7 @@ def make_payment_request(**args):
|
|||||||
)
|
)
|
||||||
|
|
||||||
party_type = args.get("party_type") or "Customer"
|
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:
|
if not party_account_currency:
|
||||||
party_account = get_party_account(party_type, ref_doc.get(party_type.lower()), ref_doc.company)
|
party_account = get_party_account(party_type, ref_doc.get(party_type.lower()), ref_doc.company)
|
||||||
|
|||||||
Reference in New Issue
Block a user