2022-02-15 11:51:52 +05:30
|
|
|
import frappe
|
|
|
|
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
"""
|
|
|
|
- Don't use batchwise valuation for existing batches.
|
|
|
|
- Only batches created after this patch shoule use it.
|
|
|
|
"""
|
2022-02-19 16:26:17 +05:30
|
|
|
|
|
|
|
batch = frappe.qb.DocType("Batch")
|
|
|
|
frappe.qb.update(batch).set(batch.use_batchwise_valuation, 0).run()
|