fix: Cashier query in POS Opening/Closing Entry (#25398)
This commit is contained in:
parent
b91fcbd70e
commit
125c3d64a9
@ -89,8 +89,8 @@ class POSClosingEntry(StatusUpdater):
|
|||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
@frappe.validate_and_sanitize_search_inputs
|
@frappe.validate_and_sanitize_search_inputs
|
||||||
def get_cashiers(doctype, txt, searchfield, start, page_len, filters):
|
def get_cashiers(doctype, txt, searchfield, start, page_len, filters):
|
||||||
cashiers_list = frappe.get_all("POS Profile User", filters=filters, fields=['user'])
|
cashiers_list = frappe.get_all("POS Profile User", filters=filters, fields=['user'], as_list=1)
|
||||||
return [c['user'] for c in cashiers_list]
|
return [c for c in cashiers_list]
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_pos_invoices(start, end, pos_profile, user):
|
def get_pos_invoices(start, end, pos_profile, user):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user