NEW show SellBy/EatBy dates for each batch product in shipment card

This commit is contained in:
lvessiller 2022-08-11 17:33:28 +02:00
parent 24b0ae85ca
commit 9a780a25d8

View File

@ -1526,6 +1526,12 @@ if ($action == 'create') {
} else {
print 'TableLotIncompleteRunRepairWithParamStandardEqualConfirmed';
}
if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
print ' - '.$langs->trans("SellByDate").': '.dol_print_date($dbatch->sellby, "day");
}
if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
print ' - '.$langs->trans("EatByDate").': '.dol_print_date($dbatch->eatby, "day");
}
print ' ('.$dbatch->qty.')';
$quantityToBeDelivered -= $deliverableQty;
if ($quantityToBeDelivered < 0) {