Update card.php

This commit is contained in:
Laurent Destailleur 2021-06-04 12:56:40 +02:00 committed by GitHub
parent 292d5f6a15
commit 43be7cf996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ if (!empty($conf->accounting->enabled)) {
}
// Load translation files required by the page
$langs->loadLangs(array('bills', 'companies', 'compta', 'products', 'banks', 'main', 'withdrawals','productbatch'));
$langs->loadLangs(array('bills', 'companies', 'compta', 'products', 'banks', 'main', 'withdrawals'));
if (!empty($conf->incoterm->enabled)) {
$langs->load('incoterm');
}
@ -2234,6 +2234,7 @@ if (empty($reshook)) {
} else {
// Add batchinfo if the detail_batch array is defined
if (!empty($lines[$i]->detail_batch) && is_array($lines[$i]->detail_batch) && !empty($conf->global->INVOICE_INCUDE_DETAILS_OF_LOTS_SERIALS)) {
$langs->load('productbatch');
foreach ($lines[$i]->detail_batch as $batchline) {
$desc .= ' '.$langs->trans('Batch').' '.$batchline->batch.' '.$langs->trans('printQty', $batchline->qty).' ';
}