fix(pos): reset stale selected mode of payment on new invoice (backport #59308) (#59355)

Co-authored-by: Vishnu Priya Baskaran <145791817+ervishnucs@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2026-09-23 19:26:48 +00:00
committed by GitHub
parent 48635ee6b5
commit 1e16c827ef

View File

@@ -558,6 +558,9 @@ erpnext.PointOfSale.Controller = class {
}
make_new_invoice() {
if (this.payment) {
this.payment.selected_mode = "";
}
return frappe.run_serially([
() => frappe.dom.freeze(),
() => this.make_invoice_frm(this.settings.frm_doctype),