Limit editable stock items list in Sales Order, Credit Notes to 50 chars.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 18 Jul 2019 14:06:32 +0000 (16:06 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 18 Jul 2019 14:06:32 +0000 (16:06 +0200)
includes/ui/ui_lists.inc
sales/includes/ui/sales_order_ui.inc

index de027627997b4366a5a21a1f0c0da6e17e704a8e..55ef6777d5d004a40c4fbcfa8c82cadde687713c 100644 (file)
@@ -944,7 +944,7 @@ function sales_items_list_cells($label, $name, $selected_id=null, $all_option=fa
        if ($label != null)
                echo "<td>$label</td>\n";
        echo sales_items_list($name, $selected_id, $all_option, $submit_on_change,
-               '', array('cells'=>true));
+               '', array('cells'=>true, 'max'=>50)); // maximum is set to 50 and not default 255.
 }
 
 function sales_kits_list($name, $selected_id=null, $all_option=false, $submit_on_change=false)
index ae763fca3eea45165a552817c815f18f283fefb4..6a797f083c9db2858985afa6826d54fce4db4c77 100644 (file)
@@ -490,7 +490,7 @@ function sales_order_item_controls(&$order, &$rowcounter, $line_no=-1)
                hidden('stock_id', $_POST['stock_id']);
                label_cell($_POST['stock_id']);
                if ($order->line_items[$id]->descr_editable)
-                       text_cells(null,'item_description', null, 45, 150);
+                       text_cells(null,'item_description', null, 45, 10);
                else {
                        hidden('item_description', $_POST['item_description']);
                        label_cell($_POST['item_description']);