Skip to content

Commit

Permalink
fix: added filter to show only submitted assets
Browse files Browse the repository at this point in the history
  • Loading branch information
khushi8112 committed Jul 8, 2024
1 parent 4cea34c commit cd3a900
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions erpnext/assets/doctype/asset_repair/asset_repair.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ frappe.ui.form.on("Asset Repair", {
};
};

frm.set_query("asset", function () {
return {
filters: {
company: frm.doc.company,
docstatus: 1,
},
};
});

frm.set_query("warehouse", "stock_items", function () {
return {
filters: {
Expand Down

0 comments on commit cd3a900

Please sign in to comment.