Skip to content

Commit 65d8a17

Browse files
diptanilsahamergify[bot]
authored andcommitted
fix(sales_invoice): using msgprint and removed condition checking for is_created_using_pos to refetch payment methods (#53636)
(cherry picked from commit f8ab56e)
1 parent 572d853 commit 65d8a17

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

erpnext/accounts/doctype/sales_invoice/sales_invoice.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,7 +2745,7 @@ def append_payment(payment_mode):
27452745
payment.account = payment_mode.default_account
27462746
payment.type = payment_mode.type
27472747

2748-
mop_refetched = bool(doc.payments) and not doc.is_created_using_pos
2748+
mop_refetched = bool(doc.payments)
27492749

27502750
doc.set("payments", [])
27512751
invalid_modes = []
@@ -2769,9 +2769,8 @@ def append_payment(payment_mode):
27692769
frappe.throw(msg.format(", ".join(invalid_modes)), title=_("Missing Account"))
27702770

27712771
if mop_refetched:
2772-
frappe.toast(
2773-
_("Payment methods refreshed. Please review before proceeding."),
2774-
indicator="orange",
2772+
frappe.msgprint(
2773+
_("Payment methods refreshed. Please review before proceeding."), indicator="orange", alert=True
27752774
)
27762775

27772776

0 commit comments

Comments
 (0)