mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 11:55:11 +00:00
fix: avoid circular dependency (#53109)
(cherry picked from commit d2e04750b5)
This commit is contained in:
committed by
Mergify
parent
7e09bf306a
commit
7d950f71da
@@ -4,19 +4,6 @@
|
|||||||
frappe.ui.form.on("POS Closing Entry", {
|
frappe.ui.form.on("POS Closing Entry", {
|
||||||
onload: async function (frm) {
|
onload: async function (frm) {
|
||||||
frm.ignore_doctypes_on_cancel_all = ["POS Invoice Merge Log", "Sales Invoice"];
|
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) {
|
frm.set_query("pos_opening_entry", function (doc) {
|
||||||
return { filters: { status: "Open", docstatus: 1 } };
|
return { filters: { status: "Open", docstatus: 1 } };
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user