mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-25 01:28:29 +00:00
fix: Server side validation for missing payment gateway account
This commit is contained in:
@@ -462,6 +462,9 @@ def get_party(user=None):
|
||||
return customer
|
||||
|
||||
def get_debtors_account(cart_settings):
|
||||
if not cart_settings.payment_gateway_account:
|
||||
frappe.throw(_("Payment Gateway Account not set"), _("Mandatory"))
|
||||
|
||||
payment_gateway_account_currency = \
|
||||
frappe.get_doc("Payment Gateway Account", cart_settings.payment_gateway_account).currency
|
||||
|
||||
|
||||
Reference in New Issue
Block a user