Update card.php

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

View File

@ -2233,7 +2233,7 @@ if (empty($reshook)) {
setEventMessages($mesg, null, 'errors');
} 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)) {
if (!empty($conf->productbatch->enabled) && !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).' ';