projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added 'company_logo_on_views' in sys_prefs in the default sql charts.
[fa-stable.git]
/
purchasing
/
inquiry
/
po_search_completed.php
diff --git
a/purchasing/inquiry/po_search_completed.php
b/purchasing/inquiry/po_search_completed.php
index e173bd3454e4ec9777ffd33e9d3227e0d5a0e8d6..4046424e69f39b5b0a0d504bdd9a97092800f1dd 100644
(file)
--- 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"]);
}
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);
function prt_link($row)
{
return print_document_link($row['order_no'], _("Print"), true, ST_PURCHORDER, ICON_PRINT);
@@
-107,7
+116,7
@@
$sql = get_sql_for_po_search_completed(get_post('OrdersAfterDate'), get_post('Or
get_post('SelectStockFromList'), get_post('also_closed'));
$cols = array(
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"),
_("Reference"),
_("Supplier") => array('ord'=>''),
_("Location"),
@@
-116,7
+125,8
@@
$cols = array(
_("Currency") => array('align'=>'center'),
_("Order Total") => 'amount',
array('insert'=>true, 'fun'=>'edit_link'),
_("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) {
);
if (get_post('StockLocation') != ALL_TEXT) {