From 200702a53cf006b1cc3b6a170d77a2417700e396 Mon Sep 17 00:00:00 2001 From: atm-quentin Date: Wed, 24 Oct 2018 09:35:18 +0200 Subject: [PATCH] FIX Display edit batch only if product handle it --- htdocs/reception/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php index 0610430ba13..ffbb5dbd765 100644 --- a/htdocs/reception/card.php +++ b/htdocs/reception/card.php @@ -1918,7 +1918,7 @@ else if ($id || $ref) // Warehouse source print '' . $formproduct->selectWarehouses($lines[$i]->fk_entrepot, 'entl'.$line_id, '', 1, 0, $lines[$i]->fk_product, '', 1). ''; // Batch number managment - if($conf->productbatch->enabled){ + if($conf->productbatch->enabled && !empty($lines[$i]->product->status_batch)){ print '
'; print $langs->trans('EatByDate').' : '; print $form->select_date($lines[$i]->eatby,'dlc' .$line_id , '', '', 1, ""). '
';