f4af75f60b
This is required to avoid breaking behaviour in valuation of old batches
13 lines
229 B
Python
13 lines
229 B
Python
import frappe
|
|
|
|
|
|
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
|
|
""")
|