Small fix

This commit is contained in:
Alexandre SPANGARO 2018-08-01 07:46:17 +02:00
parent 0509a176ca
commit ee61a88540
2 changed files with 4 additions and 10 deletions

View File

@ -513,8 +513,6 @@ class PaymentSalary extends CommonObject
$linkstart = '<a href="'.DOL_URL_ROOT.'/compta/salaries/card.php?id='.$this->id.'" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">'; $linkstart = '<a href="'.DOL_URL_ROOT.'/compta/salaries/card.php?id='.$this->id.'" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
$linkend='</a>'; $linkend='</a>';
$picto='payment';
$result .= $linkstart; $result .= $linkstart;
if ($withpicto) $result.=img_object(($notooltip?'':$label), ($this->picto?$this->picto:'generic'), ($notooltip?(($withpicto != 2) ? 'class="paddingright"' : ''):'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip?0:1); if ($withpicto) $result.=img_object(($notooltip?'':$label), ($this->picto?$this->picto:'generic'), ($notooltip?(($withpicto != 2) ? 'class="paddingright"' : ''):'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip?0:1);
if ($withpicto != 2) $result.= $this->ref; if ($withpicto != 2) $result.= $this->ref;

View File

@ -879,10 +879,6 @@ foreach ($listofreferent as $key => $value)
{ {
print $expensereport->getNomUrl(1); print $expensereport->getNomUrl(1);
} }
if ($tablename == 'payment_salary')
{
print '';
}
else else
{ {
// Show ref with link // Show ref with link
@ -969,7 +965,7 @@ foreach ($listofreferent as $key => $value)
else if ($tablename == 'payment_salary') else if ($tablename == 'payment_salary')
{ {
$tmpuser=new User($db); $tmpuser=new User($db);
$tmpuser->fetch($salaries->fk_user); $tmpuser->fetch($element->fk_user);
print $tmpuser->getNomUrl(1,'',48); print $tmpuser->getNomUrl(1,'',48);
} }
else if ($tablename == 'don' || $tablename == 'stock_mouvement') else if ($tablename == 'don' || $tablename == 'stock_mouvement')