From ea632abeadf2045326cfe05c0fc0fb408b42d39f Mon Sep 17 00:00:00 2001 From: NandhiniDevi <95607404+Nandhinidevi123@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:04:53 +0530 Subject: [PATCH 1/2] fix: add delivered status filter in warranty claim serial no field --- erpnext/support/doctype/warranty_claim/warranty_claim.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/support/doctype/warranty_claim/warranty_claim.js b/erpnext/support/doctype/warranty_claim/warranty_claim.js index d7b77f71c5ee..f2db9e94b93e 100644 --- a/erpnext/support/doctype/warranty_claim/warranty_claim.js +++ b/erpnext/support/doctype/warranty_claim/warranty_claim.js @@ -12,6 +12,7 @@ frappe.ui.form.on("Warranty Claim", { frm.set_query("serial_no", () => { let filters = { company: frm.doc.company, + status: ["in",["Delivered"]], }; if (frm.doc.item_code) { From 57fc02afaf90ea8ab724c4a00bf66b5bc6bf02f2 Mon Sep 17 00:00:00 2001 From: NandhiniDevi <95607404+Nandhinidevi123@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:11:34 +0530 Subject: [PATCH 2/2] fix: align issue resolved --- erpnext/support/doctype/warranty_claim/warranty_claim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/support/doctype/warranty_claim/warranty_claim.js b/erpnext/support/doctype/warranty_claim/warranty_claim.js index f2db9e94b93e..1d681cdacb20 100644 --- a/erpnext/support/doctype/warranty_claim/warranty_claim.js +++ b/erpnext/support/doctype/warranty_claim/warranty_claim.js @@ -12,7 +12,7 @@ frappe.ui.form.on("Warranty Claim", { frm.set_query("serial_no", () => { let filters = { company: frm.doc.company, - status: ["in",["Delivered"]], + status: ["in", ["Delivered"]], }; if (frm.doc.item_code) {