Bug 5106: Incorrect field length for inserting a kit. Also in Foreign Item Codes...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 7 Apr 2020 22:15:50 +0000 (00:15 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 7 Apr 2020 22:15:50 +0000 (00:15 +0200)
inventory/manage/item_codes.php
inventory/manage/sales_kits.php

index 236ac79592bfe482ff912632149c6b71e297ae06..0742780aaa272753e7d2cbfa7e017e2a6b3e7b2f 100644 (file)
@@ -177,7 +177,7 @@ start_table(TABLESTYLE2);
 
 hidden('code_id', $selected_id);
 
-text_row(_("UPC/EAN code:"), 'item_code', null, 20, 21);
+text_row(_("UPC/EAN code:"), 'item_code', null, 20, 20);
 qty_row(_("Quantity:"), 'quantity', null, '', $units, $dec);
 text_row(_("Description:"), 'description', null, 50, 200);
 stock_categories_list_row(_("Category:"), 'category_id', null);
index f7199e8c0a6483a69cd2a08d5159ad30f51de816..219f7f353d044e66eaf534b8cad260574439d703 100644 (file)
@@ -196,7 +196,7 @@ $selected_kit = $_POST['item_code'];
 if (get_post('item_code') == '') {
 // New sales kit entry
        start_table(TABLESTYLE2);
-       text_row(_("Alias/kit code:"), 'kit_code', null, 20, 21);
+       text_row(_("Alias/kit code:"), 'kit_code', null, 20, 20);
 } else
 {
         // Kit selected so display bom or edit component