Skip to content

Commit 7d950f7

Browse files
ervishnucsmergify[bot]
authored andcommitted
fix: avoid circular dependency (#53109)
(cherry picked from commit d2e0475)
1 parent 7e09bf3 commit 7d950f7

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@
44
frappe.ui.form.on("POS Closing Entry", {
55
onload: async function (frm) {
66
frm.ignore_doctypes_on_cancel_all = ["POS Invoice Merge Log", "Sales Invoice"];
7-
frm.set_query("pos_profile", function (doc) {
8-
return {
9-
filters: { user: doc.user },
10-
};
11-
});
12-
13-
frm.set_query("user", function (doc) {
14-
return {
15-
query: "erpnext.accounts.doctype.pos_closing_entry.pos_closing_entry.get_cashiers",
16-
filters: { parent: doc.pos_profile },
17-
};
18-
});
19-
207
frm.set_query("pos_opening_entry", function (doc) {
218
return { filters: { status: "Open", docstatus: 1 } };
229
});

0 commit comments

Comments
 (0)