From d2e04750b52ef2eb79cdefc012df9da7fe99f51f Mon Sep 17 00:00:00 2001 From: Vishnu Priya Baskaran <145791817+ervishnucs@users.noreply.github.com> Date: Tue, 3 Mar 2026 14:32:08 +0530 Subject: [PATCH] fix: avoid circular dependency (#53109) --- .../doctype/pos_closing_entry/pos_closing_entry.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js b/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js index bea821fed40..afb8f179fe3 100644 --- a/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js +++ b/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js @@ -4,19 +4,6 @@ frappe.ui.form.on("POS Closing Entry", { onload: async function (frm) { frm.ignore_doctypes_on_cancel_all = ["POS Invoice Merge Log", "Sales Invoice"]; - frm.set_query("pos_profile", function (doc) { - return { - filters: { user: doc.user }, - }; - }); - - frm.set_query("user", function (doc) { - return { - query: "erpnext.accounts.doctype.pos_closing_entry.pos_closing_entry.get_cashiers", - filters: { parent: doc.pos_profile }, - }; - }); - frm.set_query("pos_opening_entry", function (doc) { return { filters: { status: "Open", docstatus: 1 } }; });