File tree Expand file tree Collapse file tree
erpnext/accounts/doctype/sales_invoice Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments