Fixed wrong calculaiton of standard cost during Advanced Manufacturing. Petros.
[fa-stable.git] / manufacturing / includes / db / work_orders_quick_db.inc
index 72b5c8df7e0d873a5b2ed3371df46105f21f66ea..e28ee7f09de1dc35de2135035fab40872a806ef6 100644 (file)
@@ -153,7 +153,7 @@ function work_order_quick_costs($woid, $stock_id, $units_reqd, $date_, $advanced
        if ($advanced)
        {
                //Chaitanya: Material cost added at time of production as per BOM at the time and in adjustment mode.
-               add_material_cost($stock_id, $units_reqd, $date_, true);        
+               add_material_cost($stock_id, $units_reqd, $date_, true, $woid); 
        
                // $wo = get_work_order($woid);
                // also take the additional issues