fix: set default warehouse for pos invoice

This commit is contained in:
Danny
2024-03-27 12:41:58 -04:00
committed by GitHub
parent a4dd1c2bf6
commit b156937254

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;