Update finished goods fix
This commit is contained in:
		
							parent
							
								
									7a64cb2aa5
								
							
						
					
					
						commit
						35898d7518
					
				| @ -285,7 +285,7 @@ class StockEntry(StockController): | ||||
| 				if flt(d.completed_qty): | ||||
| 					operation_cost_per_unit += flt(d.actual_operating_cost) / flt(d.completed_qty) | ||||
| 				else: | ||||
| 					operation_cost_per_unit += flt(d.planned_operating_cost) / flt(self.qty) | ||||
| 					operation_cost_per_unit += flt(d.planned_operating_cost) / flt(pro_order.qty) | ||||
| 
 | ||||
| 		if not operation_cost_per_unit and bom_no: | ||||
| 			bom = frappe.db.get_value("BOM", bom_no, ["operating_cost", "quantity"], as_dict=1) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user