From 1efca0b81fdeb5f0d4cacf2c251719cb96f244b4 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 23 Jun 2009 13:33:56 +0000 Subject: [PATCH] Added edition link in PO inquiry. --- CHANGELOG.txt | 5 +++++ purchasing/includes/ui/po_ui.inc | 4 +++- purchasing/inquiry/po_search_completed.php | 8 ++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 0398c69..deea587 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,11 @@ Legend: ! -> Note $ -> Affected files +23-Jun-2009 Janusz Dobrowolski +! Added edition link in Purchase Order Inquiry +$ /purchasing/includes/ui/po_ui.inc + /purchasing/inquiry/po_search_completed.php + 23-Jun-2009 Joe Hunt # [0000137] Material Cost Averaging Problem (again) when voiding. $ /purchasing/includes/db/invoice_db.inc diff --git a/purchasing/includes/ui/po_ui.inc b/purchasing/includes/ui/po_ui.inc index a815c3a..55eae66 100644 --- a/purchasing/includes/ui/po_ui.inc +++ b/purchasing/includes/ui/po_ui.inc @@ -165,7 +165,8 @@ function display_po_items(&$order, $editable=true) div_start('items_table'); start_table("$table_style width=80%"); - $th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), + $th = array(_("Item Code"), _("Item Description"), _("Quantity"), + _("Received"), _("Unit"), _("Required Delivery Date"), _("Price"), _("Line Total"), ""); if (count($order->line_items)) $th[] = ''; @@ -186,6 +187,7 @@ function display_po_items(&$order, $editable=true) label_cell($po_line->stock_id); label_cell($po_line->item_description); qty_cell($po_line->quantity, false, get_qty_dec($po_line->stock_id)); + qty_cell($po_line->qty_received, false, get_qty_dec($po_line->stock_id)); label_cell($po_line->units); label_cell($po_line->req_del_date); amount_cell($po_line->price); diff --git a/purchasing/inquiry/po_search_completed.php b/purchasing/inquiry/po_search_completed.php index c949d46..a22f6d2 100644 --- a/purchasing/inquiry/po_search_completed.php +++ b/purchasing/inquiry/po_search_completed.php @@ -92,6 +92,13 @@ function trans_view($trans) return get_trans_view_str(systypes::po(), $trans["order_no"]); } +function edit_link($row) +{ + return pager_link( _("Edit"), + "/purchasing/po_entry_items.php?" . SID + . "ModifyOrderNumber=" . $row["order_no"], ICON_EDIT); +} + function prt_link($row) { return print_document_link($row['order_no'], _("Print"), true, 18, ICON_PRINT); @@ -152,6 +159,7 @@ $cols = array( _("Order Date") => array('name'=>'ord_date', 'type'=>'date', 'ord'=>'desc'), _("Currency") => array('align'=>'center'), _("Order Total") => 'amount', + array('insert'=>true, 'fun'=>'edit_link'), array('insert'=>true, 'fun'=>'prt_link'), ); -- 2.30.2