<commit_before>def execute():
	import webnotes
	
	webnotes.reload_doc("manufacturing", "doctype", "production_order")
	webnotes.reload_doc("stock", "doctype", "stock_entry")
	
	webnotes.conn.sql("""update `tabStock Entry` 
		set use_multi_level_bom = if(consider_sa_items_as_raw_materials='Yes', 0, 1)""")
	
	webnotes.conn.sql("""update `tabProduction Order` 
		set use_multi_level_bom = if(consider_sa_items_as_raw_materials='Yes', 0, 1)
		where use_multi_level_bom is null""")<commit_msg>fix in production order patch<commit_after>def execute():
	import webnotes
	
	webnotes.reload_doc("manufacturing", "doctype", "production_order")
	webnotes.reload_doc("stock", "doctype", "stock_entry")
	
	webnotes.conn.sql("""update `tabStock Entry` 
		set use_multi_level_bom = if(consider_sa_items_as_raw_materials='Yes', 0, 1)""")
	
	webnotes.conn.sql("""update `tabProduction Order` 
		set use_multi_level_bom = if(consider_sa_items='Yes', 0, 1)
		where use_multi_level_bom is null""")
{'fraction_non_alphanumeric': 0.13891726251276812, 'fraction_numerical': 0.008171603677221655, 'mean_word_length': 7.3760683760683765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3741125', 'n_tokens_mistral': 386, 'n_tokens_neox': 338, 'n_words': 63}