Wrong parameter when saving Item Adjustment
authorJoe <unknown>
Tue, 12 Aug 2014 21:46:20 +0000 (23:46 +0200)
committerJoe <unknown>
Tue, 12 Aug 2014 21:46:20 +0000 (23:46 +0200)
inventory/includes/db/items_adjust_db.inc

index f9ecd6f314de160d939ff1969ee42b84e658775a..6e95c2574fe781978a9cdcf6dc700bf639b0bf92 100644 (file)
@@ -130,7 +130,7 @@ function add_stock_adjustment_item($adj_id, $stock_id, $location, $date_, $type,
        update_average_material_cost(null, $stock_id, $standard_cost, $quantity, $date_);
 
        add_stock_move(ST_INVADJUST, $stock_id, $adj_id, $location,
-        $date_, $reference, $quantity, $standard_cost, $type);
+        $date_, $reference, $quantity, $standard_cost);
 
        if ($standard_cost > 0)
        {