Skip to content

Commit

Permalink
Merge pull request #42233 from khushi8112/show-only-submitted-assets
Browse files Browse the repository at this point in the history
fix: added filter to show only submitted assets
  • Loading branch information
khushi8112 authored Jul 9, 2024
2 parents 1186ee1 + cd3a900 commit 0893a06
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 0893a06

Please sign in to comment.