mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +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
|
return customer
|
||||||
|
|
||||||
def get_debtors_account(cart_settings):
|
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 = \
|
payment_gateway_account_currency = \
|
||||||
frappe.get_doc("Payment Gateway Account", cart_settings.payment_gateway_account).currency
|
frappe.get_doc("Payment Gateway Account", cart_settings.payment_gateway_account).currency
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user