fix: set default warehouse for pos invoice

(cherry picked from commit b156937254)
This commit is contained in:
Danny
2024-03-27 12:41:58 -04:00
committed by Mergify
parent 3971ff5f72
commit b80a5f27a9

View File

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