Ok so how I just did it is like this...
edit in file "/sales/inquiry/customer_inquiry.php"
add this copy function around the other link functions like "edit link"
function copy_link($row)
{
global $page_nested;
if ($page_nested)
return '';
if ($row['type'] == ST_CUSTDELIVERY)
return pager_link(_('Copy Delivery'), "/sales/sales_order_entry.php?NewDelivery="
.$row['order_'], ICON_DOC);
else if ($row['type'] == ST_SALESINVOICE)
return pager_link(_("Copy Invoice") ,
"/sales/sales_order_entry.php?NewInvoice=". $row['order_'], ICON_DOC);
}
then add "array('insert'=>true, 'fun'=>'copy_link')," $cols array at the bottom of the page my finished $cols looks like this
$cols = array(
_("Type") => array('fun'=>'systype_name', 'ord'=>''),
_("#") => array('fun'=>'trans_view', 'ord'=>'', 'align'=>'right'),
_("Order") => array('fun'=>'order_view', 'align'=>'right'),
_("Reference"),
_("Date") => array('name'=>'tran_date', 'type'=>'date', 'ord'=>'desc'),
_("Due Date") => array('type'=>'date', 'fun'=>'due_date'),
_("Customer") => array('ord'=>''),
_("Branch") => array('ord'=>''),
_("Currency") => array('align'=>'center'),
_("Amount") => array('align'=>'right', 'fun'=>'fmt_amount'),
_("Balance") => array('align'=>'right', 'type'=>'amount'),
array('insert'=>true, 'fun'=>'gl_view'),
array('insert'=>true, 'fun'=>'edit_link'),
array('insert'=>true, 'fun'=>'copy_link'),
array('insert'=>true, 'fun'=>'credit_link'),
array('insert'=>true, 'fun'=>'prt_link')
);
@apmuthu and @joe
this is a simple change and would probably be handy for many people. I would consider adding it to core if you dont think it clutters the table to much.