fix(stock): show available qty in warehouse link field (#54474)

This commit is contained in:
Sudharsanan Ashok
2026-04-23 17:08:54 +05:30
committed by GitHub
parent b8c3765b85
commit ab19b16fe2

View File

@@ -106,10 +106,12 @@ erpnext.SerialBatchPackageSelector = class SerialNoBatchBundleUpdate {
},
get_query: () => {
return {
filters: {
is_group: 0,
company: this.frm.doc.company,
},
query: "erpnext.controllers.queries.warehouse_query",
filters: [
["Bin", "item_code", "=", this.item.item_code],
["Warehouse", "is_group", "=", 0],
["Warehouse", "company", "=", this.frm.doc.company],
],
};
},
});