From f8ab56ecc96ae7c28b9f7b8e79488ff2c47cc810 Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Thu, 19 Mar 2026 14:18:48 +0530 Subject: [PATCH] fix(sales_invoice): using `msgprint` and removed condition checking for `is_created_using_pos` to refetch payment methods (#53636) --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 )