import xhiveframework


def execute():
	"""
	- Don't use batchwise valuation for existing batches.
	- Only batches created after this patch shoule use it.
	"""

	batch = xhiveframework.qb.DocType("Batch")
	xhiveframework.qb.update(batch).set(batch.use_batchwise_valuation, 0).run()
