Merge pull request #17878 from AlexisLaurier/fix/depositTranslationInInvoice

remove useless check on invoice line content when generating pdf
This commit is contained in:
Laurent Destailleur 2021-06-11 18:13:58 +02:00 committed by GitHub
commit a057f17e56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1272,9 +1272,7 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
if (!empty($prodser->multilangs[$outputlangs->defaultlang]["note"]) && ($textwasmodified || $translatealsoifmodified)) $note = $prodser->multilangs[$outputlangs->defaultlang]["note"];
}
} elseif ($object->element == 'facture' || $object->element == 'facturefourn') {
if ($object->type == $object::TYPE_DEPOSIT) {
$desc = str_replace('(DEPOSIT)', $outputlangs->trans('Deposit'), $desc);
}
$desc = str_replace('(DEPOSIT)', $outputlangs->trans('Deposit'), $desc);
}
// Description short of product line