From 9a780a25d8d95ded57cd7df828557ebf2a8b9822 Mon Sep 17 00:00:00 2001 From: lvessiller Date: Thu, 11 Aug 2022 17:33:28 +0200 Subject: [PATCH] NEW show SellBy/EatBy dates for each batch product in shipment card --- htdocs/expedition/card.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index c226ba927be..dd41274e81a 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -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) {