refactor: use qb for patching flag
This commit is contained in:
parent
d130233ffc
commit
312db429e4
@ -6,7 +6,6 @@ def execute():
|
||||
- Don't use batchwise valuation for existing batches.
|
||||
- Only batches created after this patch shoule use it.
|
||||
"""
|
||||
frappe.db.sql("""
|
||||
UPDATE `tabBatch`
|
||||
SET use_batchwise_valuation=0
|
||||
""")
|
||||
|
||||
batch = frappe.qb.DocType("Batch")
|
||||
frappe.qb.update(batch).set(batch.use_batchwise_valuation, 0).run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user