diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 8616379c56d..6bc24633ca9 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -2745,7 +2745,7 @@ def update_multi_mode_option(doc, pos_profile): payment.account = payment_mode.default_account payment.type = payment_mode.type - mop_refetched = bool(doc.payments) and not doc.is_created_using_pos + mop_refetched = bool(doc.payments) doc.set("payments", []) invalid_modes = [] @@ -2769,9 +2769,8 @@ def update_multi_mode_option(doc, pos_profile): frappe.throw(msg.format(", ".join(invalid_modes)), title=_("Missing Account")) if mop_refetched: - frappe.toast( - _("Payment methods refreshed. Please review before proceeding."), - indicator="orange", + frappe.msgprint( + _("Payment methods refreshed. Please review before proceeding."), indicator="orange", alert=True )