Update card.php
This commit is contained in:
parent
64a686aad4
commit
799b8b8e24
@ -1959,6 +1959,16 @@ if ($action == 'create') {
|
|||||||
$reslot = $productlot->fetch(0, $lines[$i]->fk_product, $lines[$i]->batch);
|
$reslot = $productlot->fetch(0, $lines[$i]->fk_product, $lines[$i]->batch);
|
||||||
if ($reslot > 0) {
|
if ($reslot > 0) {
|
||||||
$detail = $productlot->getNomUrl(1);
|
$detail = $productlot->getNomUrl(1);
|
||||||
|
} else {
|
||||||
|
// lot is not created and info is only in reception lines
|
||||||
|
$batchinfo = $langs->trans("Batch").': '.$lines[$i]->batch;
|
||||||
|
if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
|
||||||
|
$batchinfo .= ' - '.$langs->trans("SellByDate").': '.dol_print_date($lines[$i]->sellby, "day");
|
||||||
|
}
|
||||||
|
if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
|
||||||
|
$batchinfo .= ' - '.$langs->trans("EatByDate").': '.dol_print_date($lines[$i]->eatby, "day");
|
||||||
|
}
|
||||||
|
$detail = $form->textwithtooltip(img_picto('', 'object_barcode').' '.$langs->trans("DetailBatchNumber"), $batchinfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print $detail . '</td>';
|
print $detail . '</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user