Merged bugfixes upto [0000072] (version 2.0.3).
[fa-stable.git] / inventory / includes / stock_transfers_ui.inc
index eb68bc472cc94ce35e36dfa5309c1ffe5938df61..26609a1bf7b32ca3125cb09e84b996280a9b305a 100644 (file)
@@ -70,7 +70,7 @@ function display_transfer_items($title, &$order)
                {
                alt_table_row_color($k);
 
-               label_cell("<a target='_blank' href='$path_to_root/inventory/inquiry/stock_status.php?" . SID . "stock_id=" . $stock_item->stock_id . "'>$stock_item->stock_id</a>");
+                       view_stock_status_cell($stock_item->stock_id);
                label_cell($stock_item->item_description);
                qty_cell($stock_item->quantity, false, get_qty_dec($stock_item->stock_id));
                label_cell($stock_item->units);
@@ -116,7 +116,7 @@ function transfer_edit_item_controls(&$order, $line_no=-1)
        else
        {
        stock_costable_items_list_cells(null, 'stock_id', null, false, true);
-               if(isset($_POST['_stock_id_update'])) {
+               if (list_updated('stock_id')) {
                            $Ajax->activate('units');
                            $Ajax->activate('qty');
                }