FIX Display edit batch only if product handle it

This commit is contained in:
atm-quentin 2018-10-24 09:35:18 +02:00
parent 04eb9ca167
commit 200702a53c

View File

@ -1918,7 +1918,7 @@ else if ($id || $ref)
// Warehouse source
print '<td>' . $formproduct->selectWarehouses($lines[$i]->fk_entrepot, 'entl'.$line_id, '', 1, 0, $lines[$i]->fk_product, '', 1). '</td>';
// Batch number managment
if($conf->productbatch->enabled){
if($conf->productbatch->enabled && !empty($lines[$i]->product->status_batch)){
print '<td> <input name="batch'.$line_id.'" id="batch'.$line_id.'" type="text" value="'.$lines[$i]->batch.'"> </br>';
print $langs->trans('EatByDate').' : ';
print $form->select_date($lines[$i]->eatby,'dlc' .$line_id , '', '', 1, ""). '</br>';