import xhiveframework


def execute():
	name = xhiveframework.db.sql(
		""" select name from `tabPatch Log` \
		where \
			patch like 'execute:xhiveframework.db.sql("update `tabProduction Order` pro set description%' """
	)
	if not name:
		xhiveframework.db.sql(
			"update `tabProduction Order` pro \
			set \
				description = (select description from tabItem where name=pro.production_item) \
			where \
				ifnull(description, '') = ''"
		)
