mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
fix: change format string to percent string interpolation (#26774)
This commit is contained in:
@@ -30,19 +30,20 @@ def execute():
|
|||||||
return
|
return
|
||||||
|
|
||||||
repost_stock_entries = []
|
repost_stock_entries = []
|
||||||
|
|
||||||
stock_entries = frappe.db.sql_list('''
|
stock_entries = frappe.db.sql_list('''
|
||||||
SELECT
|
SELECT
|
||||||
se.name
|
se.name
|
||||||
FROM
|
FROM
|
||||||
`tabStock Entry` se
|
`tabStock Entry` se
|
||||||
WHERE
|
WHERE
|
||||||
se.purpose = 'Manufacture' and se.docstatus < 2 and se.work_order in {work_orders}
|
se.purpose = 'Manufacture' and se.docstatus < 2 and se.work_order in %s
|
||||||
and not exists(
|
and not exists(
|
||||||
select name from `tabStock Entry Detail` sed where sed.parent = se.name and sed.is_finished_item = 1
|
select name from `tabStock Entry Detail` sed where sed.parent = se.name and sed.is_finished_item = 1
|
||||||
)
|
)
|
||||||
Order BY
|
ORDER BY
|
||||||
se.posting_date, se.posting_time
|
se.posting_date, se.posting_time
|
||||||
'''.format(work_orders=tuple(work_orders)))
|
''', (work_orders,))
|
||||||
|
|
||||||
if stock_entries:
|
if stock_entries:
|
||||||
print('Length of stock entries', len(stock_entries))
|
print('Length of stock entries', len(stock_entries))
|
||||||
|
|||||||
Reference in New Issue
Block a user