trans_editor_link(ST_PURCHORDER, $row["order_no"]);
}
+function receive_link($row)
+{
+ global $page_nested;
+
+ return $page_nested || !$row['OverDue'] ? '' :
+ pager_link( _("Receive"),
+ "/purchasing/po_receive_items.php?PONumber=" . $row["order_no"], ICON_RECEIVE);
+}
+
function prt_link($row)
{
- return print_document_link($row['order_no'], _("Print"), true, 18, ICON_PRINT);
+ return print_document_link($row['order_no'], _("Print"), true, ST_PURCHORDER, ICON_PRINT);
}
if (isset($_GET['order_number']))
get_post('SelectStockFromList'), get_post('also_closed'));
$cols = array(
- _("#") => array('fun'=>'trans_view', 'ord'=>''),
+ _("#") => array('fun'=>'trans_view', 'ord'=>'', 'align'=>'right'),
_("Reference"),
_("Supplier") => array('ord'=>''),
_("Location"),
_("Currency") => array('align'=>'center'),
_("Order Total") => 'amount',
array('insert'=>true, 'fun'=>'edit_link'),
- array('insert'=>true, 'fun'=>'prt_link'),
+ array('insert'=>true, 'fun'=>'receive_link'),
+ array('insert'=>true, 'fun'=>'prt_link')
);
if (get_post('StockLocation') != ALL_TEXT) {