FIX Display edit batch only if product handle it
This commit is contained in:
parent
04eb9ca167
commit
200702a53c
@ -1918,7 +1918,7 @@ else if ($id || $ref)
|
|||||||
// Warehouse source
|
// Warehouse source
|
||||||
print '<td>' . $formproduct->selectWarehouses($lines[$i]->fk_entrepot, 'entl'.$line_id, '', 1, 0, $lines[$i]->fk_product, '', 1). '</td>';
|
print '<td>' . $formproduct->selectWarehouses($lines[$i]->fk_entrepot, 'entl'.$line_id, '', 1, 0, $lines[$i]->fk_product, '', 1). '</td>';
|
||||||
// Batch number managment
|
// 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 '<td> <input name="batch'.$line_id.'" id="batch'.$line_id.'" type="text" value="'.$lines[$i]->batch.'"> </br>';
|
||||||
print $langs->trans('EatByDate').' : ';
|
print $langs->trans('EatByDate').' : ';
|
||||||
print $form->select_date($lines[$i]->eatby,'dlc' .$line_id , '', '', 1, ""). '</br>';
|
print $form->select_date($lines[$i]->eatby,'dlc' .$line_id , '', '', 1, ""). '</br>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user