Expedition class name was not being translated when creating invoice from it

This commit is contained in:
Marcos García 2013-04-27 13:55:20 +02:00
parent ecaea4c575
commit 7a115a9216

View File

@ -2084,6 +2084,7 @@ if ($action == 'create')
$newclassname=$classname;
if ($newclassname == 'Propal') $newclassname = 'CommercialProposal';
elseif ($newclassname == 'Commande') $newclassname = 'Order';
elseif ($newclassname == 'Expedition') $newclassname = 'Sending';
print '<tr><td>'.$langs->trans($newclassname).'</td><td colspan="2">'.$objectsrc->getNomUrl(1).'</td></tr>';
print '<tr><td>'.$langs->trans('TotalHT').'</td><td colspan="2">'.price($objectsrc->total_ht).'</td></tr>';