Merged bugfixes upto [0000072] (version 2.0.3).
[fa-stable.git] / inventory / includes / item_adjustments_ui.inc
index e52395b25cd1a0b498d83e66cfbe02e4cc1f8171..30e56103bb6407b0d30f98ee37da48644a62e8b7 100644 (file)
@@ -79,7 +79,7 @@ function display_adjustment_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);
@@ -125,13 +125,13 @@ function adjustment_edit_item_controls(&$order, $line_no=-1)
 
                hidden('stock_id', $_POST['stock_id']);
                label_cell($_POST['stock_id']);
-               label_cell($order->line_items[$id]->item_description);
+               label_cell($order->line_items[$id]->item_description, 'nowrap');
            $Ajax->activate('items_table');
        }
        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');
                            $Ajax->activate('std_cost');