Skip to content

Commit

Permalink
fix: Use ref_doc.get() for party_account_currency
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdeali099 committed Oct 13, 2024
1 parent 61dba71 commit b795494
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,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)
Expand Down

0 comments on commit b795494

Please sign in to comment.