Fixed change of Item list in purchase order
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 30 Apr 2008 16:04:12 +0000 (16:04 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 30 Apr 2008 16:04:12 +0000 (16:04 +0000)
CHANGELOG.txt
purchasing/includes/ui/po_ui.inc

index 1152c1e89b2cd78e7e30d86b0390041bc070182f..6ae1f35ff17d53600b41e94130ab289bb1914207 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+30-Apr-2008 Joe Hunt
+# Fixed price update also in purchase order
+$ /purchasing/includes/ui/po_ui.inc
+
 30-Apr-2008 Janusz Dobrowolski
 # Fixed price update when changing item in sales order.
 $ /includes/ui/ui_lists.inc
index a4f5115b798fb2533c37a69bcebc0b2bc8aba56b..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);
 
@@ -304,7 +304,7 @@ function po_item_controls(&$order, $stock_id=null)
                else
                {
                        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, false, "class='combo' rel='StockID2'");
+                       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"];