New: Can link to transactions list of a bank account
This commit is contained in:
parent
966c1adeab
commit
8b70133797
@ -517,7 +517,7 @@ if ($account || $_GET["ref"])
|
|||||||
print "<td nowrap>";
|
print "<td nowrap>";
|
||||||
$label=($langs->trans("PaymentTypeShort".$objp->fk_type)!="PaymentTypeShort".$objp->fk_type)?$langs->trans("PaymentTypeShort".$objp->fk_type):$objp->fk_type;
|
$label=($langs->trans("PaymentTypeShort".$objp->fk_type)!="PaymentTypeShort".$objp->fk_type)?$langs->trans("PaymentTypeShort".$objp->fk_type):$objp->fk_type;
|
||||||
// $label=$langs->getTradFromKey("PaymentTypeShort".$objp->fk_type);
|
// $label=$langs->getTradFromKey("PaymentTypeShort".$objp->fk_type);
|
||||||
|
|
||||||
if ($objp->fk_type == 'SOLD') $label=' ';
|
if ($objp->fk_type == 'SOLD') $label=' ';
|
||||||
print $label;
|
print $label;
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
@ -572,8 +572,8 @@ if ($account || $_GET["ref"])
|
|||||||
}
|
}
|
||||||
else if ($links[$key]['type']=='sc') {
|
else if ($links[$key]['type']=='sc') {
|
||||||
}
|
}
|
||||||
else {
|
else { // Show link with label $links[$key]['label']
|
||||||
//print ' - ';
|
if (! empty($objp->label) && ! empty($links[$key]['label'])) print ' - ';
|
||||||
print '<a href="'.$links[$key]['url'].$links[$key]['url_id'].'">';
|
print '<a href="'.$links[$key]['url'].$links[$key]['url_id'].'">';
|
||||||
if (preg_match('/^\((.*)\)$/i',$links[$key]['label'],$reg))
|
if (preg_match('/^\((.*)\)$/i',$links[$key]['label'],$reg))
|
||||||
{
|
{
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user