Merge branch 'develop' into subcontracting

This commit is contained in:
s-aga-r
2022-06-14 13:45:24 +05:30
30 changed files with 161 additions and 106 deletions

View File

@@ -102,7 +102,7 @@ def get_work_orders(doctype, txt, searchfield, start, page_len, filters):
return frappe.db.sql(
"""select name from `tabWork Order`
where name like %(name)s and {0} and produced_qty > qty and docstatus = 1
order by name limit {1}, {2}""".format(
order by name limit {2} offset {1}""".format(
cond, start, page_len
),
{"name": "%%%s%%" % txt},