Made an improment to the date picker. Shows the week number as well. Many delivery...
[fa-stable.git] / purchasing / includes / ui / po_ui.inc
index 1bdac7e4291bf633a3d8e01daf1573f6351de5d6..e6e1965d417cc230e9f45c60ab45390640f2a0d1 100644 (file)
@@ -166,7 +166,7 @@ function display_po_items(&$order, $editable=true)
 
        $th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"),
                _("Required Delivery Date"), _("Price"), _("Line Total"));
-       
+
        if (count($order->line_items)) $th[] = '';
        table_header($th);
 
@@ -297,14 +297,14 @@ function po_item_controls(&$order, $stock_id=null)
                $no_item_list = get_company_pref('no_item_list');
                if ($no_item_list)
                {
-                       echo "<td colspan=2>\n";
+                       echo "<td colspan=2 nowrap>\n";
                        stock_purchasable_items_list('stock_id', $_POST['stock_id'], false, true);
                        echo "</td>\n";
                }
                else
                {
-                       text_cells(null, "StockID2", "", 12, 10, "", "", "onkeyup='recalcAccounts();' onKeyDown='if(event.keyCode==13) event.keyCode=9;' onblur='return setAccount(0, true);'");
-                       stock_purchasable_items_list_cells(null, 'stock_id', $_POST['stock_id'], false, false, "onchange='return setAccount(1, true)'");
+                       text_cells(null, "StockID2", "", 12, 10, "", "", "class='combo' rel='stock_id' onblur='submit()'");
+                       stock_purchasable_items_list_cells(null, 'stock_id', $_POST['stock_id'], false, true, "class='combo' rel='StockID2'");
                }
        $item_info = get_item_edit_info($_POST['stock_id']);
                $_POST['units'] = $item_info["units"];