From 2fd37a05215b580fdda8950030e1f6f8b7fcdbbe Mon Sep 17 00:00:00 2001 From: Geethu K Date: Thu, 22 Feb 2024 09:31:35 +0530 Subject: [PATCH] feat:Added Filter to Purity --- .../aumms/doctype/jewellery_receipt/jewellery_receipt.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/aumms/aumms/doctype/jewellery_receipt/jewellery_receipt.js b/aumms/aumms/doctype/jewellery_receipt/jewellery_receipt.js index f94eb2c5..bcdd12aa 100644 --- a/aumms/aumms/doctype/jewellery_receipt/jewellery_receipt.js +++ b/aumms/aumms/doctype/jewellery_receipt/jewellery_receipt.js @@ -2,6 +2,15 @@ // For license information, please see license.txt frappe.ui.form.on("Jewellery Receipt", { + setup: function (frm) { + frm.set_query('uom', 'item_details', () => { + return { + filters: { + "is_purity_uom": 1 + } + } + }); + }, refresh:function(frm) { // show only customers whose territory is set to India frm.set_query('stone', () => {