X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Finquiry%2Fpo_search_completed.php;h=4046424e69f39b5b0a0d504bdd9a97092800f1dd;hb=97c5e11dd178b2b10edd2b99276b3347470fafc8;hp=8c939aba7717cc474867caf8750512813b3b150f;hpb=9a101a373c2b0575d65c481724d857298ec06fe9;p=fa-stable.git diff --git a/purchasing/inquiry/po_search_completed.php b/purchasing/inquiry/po_search_completed.php index 8c939aba..4046424e 100644 --- a/purchasing/inquiry/po_search_completed.php +++ b/purchasing/inquiry/po_search_completed.php @@ -38,6 +38,15 @@ function edit_link($row) 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, ST_PURCHORDER, ICON_PRINT); @@ -116,7 +125,8 @@ $cols = array( _("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) {