Update card.php
This commit is contained in:
parent
43be7cf996
commit
8b5922a0df
@ -2233,7 +2233,7 @@ if (empty($reshook)) {
|
|||||||
setEventMessages($mesg, null, 'errors');
|
setEventMessages($mesg, null, 'errors');
|
||||||
} else {
|
} else {
|
||||||
// Add batchinfo if the detail_batch array is defined
|
// 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');
|
$langs->load('productbatch');
|
||||||
foreach ($lines[$i]->detail_batch as $batchline) {
|
foreach ($lines[$i]->detail_batch as $batchline) {
|
||||||
$desc .= ' '.$langs->trans('Batch').' '.$batchline->batch.' '.$langs->trans('printQty', $batchline->qty).' ';
|
$desc .= ' '.$langs->trans('Batch').' '.$batchline->batch.' '.$langs->trans('printQty', $batchline->qty).' ';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user