Removed obsolete stock_move.person_id field and related handling.
[fa-stable.git] / manufacturing / includes / db / work_orders_quick_db.inc
index 7474802477abaf6e8b022f38f3eaacb0921a0c2a..89d8fa47f9454a6034a2cb02a2b187b57262d62c 100644 (file)
@@ -68,7 +68,7 @@ function add_work_order_quick($wo_ref, $loc_code, $units_reqd, $stock_id, $type,
                // insert a -ve stock move for each item
                $UnitCost = get_standard_cost($bom_item["component"]);
                add_stock_move(ST_WORKORDER, $bom_item["component"], $woid,
-                       $bom_item["loc_code"], $date_, $wo_ref, -$item_quantity, $UnitCost, 0, $UnitCost);
+                       $bom_item["loc_code"], $date_, $wo_ref, -$item_quantity, $UnitCost, $UnitCost);
        }
        
        // -------------------------------------------------------------------------