Missing translation of transaction types in releve detail

This commit is contained in:
Marcos García de La Fuente 2014-05-01 16:32:04 +02:00
parent e53c55002f
commit 5d46115dd3

View File

@ -310,7 +310,12 @@ else
print "</td>\n";
// Type and num
print '<td class="nowrap">'.$objp->fk_type.' '.($objp->num_chq?$objp->num_chq:'').'</td>';
if ($objp->fk_type == 'SOLD') {
$type_label='&nbsp;';
} else {
$type_label=($langs->trans("PaymentTypeShort".$objp->fk_type)!="PaymentTypeShort".$objp->fk_type)?$langs->trans("PaymentTypeShort".$objp->fk_type):$objp->fk_type;
}
print '<td class="nowrap">'.$type_label.' '.($objp->num_chq?$objp->num_chq:'').'</td>';
// Description
print '<td valign="center"><a href="'.DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$objp->rowid.'&amp;account='.$acct->id.'">';