On utilise info stocké pour définir le lien
This commit is contained in:
parent
7da727d179
commit
d2c2637caf
@ -404,22 +404,30 @@ function _print_lines($db,$result,$sql,$acct)
|
|||||||
foreach($links as $key=>$val)
|
foreach($links as $key=>$val)
|
||||||
{
|
{
|
||||||
print ' - ';
|
print ' - ';
|
||||||
print '<a href="'.$links[$key]['url'].$links[$key]['url_id'].'">';
|
|
||||||
if ($links[$key]['type']=='payment') {
|
if ($links[$key]['type']=='payment') {
|
||||||
|
print '<a href="'.DOL_URL_ROOT.'/compta/paiement/fiche.php?id='.$links[$key]['url_id'].'">';
|
||||||
//print img_object($langs->trans('ShowPayment'),'payment').' ';
|
//print img_object($langs->trans('ShowPayment'),'payment').' ';
|
||||||
print $langs->trans("Payment");
|
print $langs->trans("Payment");
|
||||||
|
print '</a>';
|
||||||
}
|
}
|
||||||
else if ($links[$key]['type']=='payment_supplier') {
|
else if ($links[$key]['type']=='payment_supplier') {
|
||||||
|
print '<a href="'.DOL_URL_ROOT.'/fourn/paiement/fiche.php?id='.$links[$key]['url_id'].'">';
|
||||||
//print img_object($langs->trans('ShowPayment'),'payment').' ';
|
//print img_object($langs->trans('ShowPayment'),'payment').' ';
|
||||||
print $langs->trans("Payment");
|
print $langs->trans("Payment");
|
||||||
|
print '</a>';
|
||||||
}
|
}
|
||||||
else if ($links[$key]['type']=='company') {
|
else if ($links[$key]['type']=='company') {
|
||||||
|
print '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$links[$key]['url_id'].'">';
|
||||||
//print img_object($langs->trans('ShowCustomer'),'company').' ';
|
//print img_object($langs->trans('ShowCustomer'),'company').' ';
|
||||||
print $links[$key]['label'];
|
print $links[$key]['label'];
|
||||||
}
|
|
||||||
else print $links[$key]['label'];
|
|
||||||
print '</a>';
|
print '</a>';
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
print '<a href="'.$links[$key]['url'].$links[$key]['url_id'].'">';
|
||||||
|
print $links[$key]['label'];
|
||||||
|
print '</a>';
|
||||||
|
}
|
||||||
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
if ($objp->amount < 0)
|
if ($objp->amount < 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user