Merge pull request #51866 from frappe/mergify/bp/version-16-hotfix/pr-51769

fix(pos): reapply set warehouse during cart update (backport #51769)
This commit is contained in:
rohitwaghchaure
2026-01-19 15:44:38 +05:30
committed by GitHub

View File

@@ -651,6 +651,9 @@ erpnext.PointOfSale.Controller = class {
async on_cart_update(args) {
frappe.dom.freeze();
if (this.frm.doc.set_warehouse !== this.settings.warehouse) {
this.frm.set_value("set_warehouse", this.settings.warehouse);
}
let item_row = undefined;
try {
let { field, value, item } = args;