Removed obsolete stock_move.person_id field and related handling.
[fa-stable.git] / manufacturing / includes / db / work_orders_quick_db.inc
index 2d1bd933d048d2f719006b7858d17f85a97f0b0a..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, 1, $UnitCost);
+                       $bom_item["loc_code"], $date_, $wo_ref, -$item_quantity, $UnitCost, $UnitCost);
        }
        
        // -------------------------------------------------------------------------
@@ -190,4 +190,3 @@ function work_order_quick_costs($woid, $stock_id, $units_reqd, $date_, $advanced
 
 //--------------------------------------------------------------------------------------
 
-?>
\ No newline at end of file