Cleanups and changes in purchasing classes.
[fa-stable.git] / purchasing / po_entry_items.php
index 0a79185514aaf447e884076caa84fc0204b12cd5..2207fa74d232750e23fa033e686ee146c8b69ecb 100644 (file)
@@ -311,9 +311,8 @@ function handle_add_new_item()
 
                        if ($allow_update)
                        {
-                               $_SESSION['PO']->add_to_order (count($_SESSION['PO']->line_items), $_POST['stock_id'], input_num('qty'), 
-                                       get_post('stock_id_text'), //$myrow["description"], 
-                                       input_num('price'), '', // $myrow["units"], (retrived in cart)
+                               $_SESSION['PO']->add_to_order($_POST['stock_id'], input_num('qty'), 
+                                       get_post('stock_id_text'), input_num('price'), 
                                        $_SESSION['PO']->trans_type == ST_PURCHORDER ? $_POST['req_del_date'] : '', 0, 0);
 
                                unset_form_variables();