Skip to content

Commit

Permalink
Merge pull request #42257 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-42233

fix: added filter to show only submitted assets (backport #42233)
  • Loading branch information
khushi8112 authored Jul 9, 2024
2 parents 43c7513 + 19ed6d1 commit 2deea33
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 2deea33

Please sign in to comment.