diff --git a/htdocs/product/class/html.formproduct.class.php b/htdocs/product/class/html.formproduct.class.php index 7b63fbd3c8c..87748643c04 100644 --- a/htdocs/product/class/html.formproduct.class.php +++ b/htdocs/product/class/html.formproduct.class.php @@ -455,12 +455,20 @@ class FormProduct { if (empty($fk_entrepot) || $fk_entrepot == $arraytypes['entrepot_id']) { + $label=$arraytypes['entrepot_label'].' - '; + $label.=$arraytypes['batch']; + if ($arraytypes['qty'] <= 0) { + $label.=' ('.$langs->trans("Stock").' '.$arraytypes['qty'].')'; + } + else { + $label.=' ('.$langs->trans("Stock").' '.$arraytypes['qty'].')'; + } + $out.=''; } }