diff --git a/india_compliance/gst_india/doctype/purchase_reconciliation_tool/purchase_reconciliation_tool.js b/india_compliance/gst_india/doctype/purchase_reconciliation_tool/purchase_reconciliation_tool.js index d4aaaaaf8..0b3d46b86 100644 --- a/india_compliance/gst_india/doctype/purchase_reconciliation_tool/purchase_reconciliation_tool.js +++ b/india_compliance/gst_india/doctype/purchase_reconciliation_tool/purchase_reconciliation_tool.js @@ -132,10 +132,10 @@ frappe.ui.form.on("Purchase Reconciliation Tool", { ); // move actions button next to filters - for (let button of $(".custom-actions .inner-group-button")) { + for (let button of frm.$wrapper.find(".custom-actions .inner-group-button")) { if (button.innerText?.trim() != "Actions") continue; - $(".custom-button-group .inner-group-button").remove(); - $(button).appendTo($(".custom-button-group")); + frm.$wrapper.find(".custom-button-group .inner-group-button").remove(); + $(button).appendTo(frm.$wrapper.find(".custom-button-group")); } },