fix(sales_invoice): using msgprint and removed condition checking for is_created_using_pos to refetch payment methods (#53636)

This commit is contained in:
diptanilsaha
2026-03-19 14:18:48 +05:30
committed by GitHub
parent 488ea7f994
commit f8ab56ecc9

View File

@@ -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
)