Merge pull request #40720 from mmdanny89/warehouse-pos

Set default warehouse for pos invoice
This commit is contained in:
rohitwaghchaure
2024-04-01 22:37:27 +05:30
committed by GitHub

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;