test: force correct flag in test data
This commit is contained in:
		
							parent
							
								
									f38690f703
								
							
						
					
					
						commit
						75fb561698
					
				| @ -778,13 +778,15 @@ def setup_item_valuation_test(valuation_method="FIFO", suffix=None, use_batchwis | |||||||
| 			ubw = use_batchwise_valuation | 			ubw = use_batchwise_valuation | ||||||
| 			if isinstance(use_batchwise_valuation, (list, tuple)): | 			if isinstance(use_batchwise_valuation, (list, tuple)): | ||||||
| 				ubw = use_batchwise_valuation[i] | 				ubw = use_batchwise_valuation[i] | ||||||
| 			make_batch( | 			batch = frappe.get_doc(frappe._dict( | ||||||
| 				frappe._dict( | 					doctype="Batch", | ||||||
| 					batch_id=batch_id, | 					batch_id=batch_id, | ||||||
| 					item=item.item_code, | 					item=item.item_code, | ||||||
| 					use_batchwise_valuation=ubw | 					use_batchwise_valuation=ubw | ||||||
| 				) | 				) | ||||||
| 			) | 			).insert() | ||||||
|  | 			batch.use_batchwise_valuation = ubw | ||||||
|  | 			batch.db_update() | ||||||
| 
 | 
 | ||||||
| 	return item.item_code, warehouses, batches | 	return item.item_code, warehouses, batches | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user