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

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

(cherry picked from commit ab19b16fe2)

Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2026-04-23 18:19:28 +05:30
committed by GitHub
parent 01b22254e7
commit f7b87ed0e3

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],
],
};
},
});