diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index a15b2ef75c8..e31f1c87c73 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -10031,8 +10031,8 @@ class Form
$ret .= ''; // gravatar need md5 hash
} else {
if ($nophoto == 'company') {
- $ret .= '
| '.$langs->trans("LastMovements", min($num, $max)).' | '; + $latestmovement .= ''.$langs->trans("Product").' | '; + if (isModEnabled('productbatch')) { + $latestmovement .= ''.$langs->trans("Batch").' | '; + } + $latestmovement .= ''.$langs->trans("Warehouse").' | '; + $latestmovement .= ''; + $latestmovement .= img_picto($langs->trans("FullList"), 'movement'); + $latestmovement .= ' | '; + $latestmovement .= "||
|---|---|---|---|---|---|---|
| '.img_picto($langs->trans("Ref").' '.$objp->mid, 'movement', 'class="pictofixedwidth"').dol_print_date($db->jdate($objp->datem), 'dayhour').' | '; + $latestmovement .= ''; + $latestmovement .= $producttmp->getNomUrl(1); + $latestmovement .= " | \n"; + if (isModEnabled('productbatch')) { + $latestmovement .= ''; + $latestmovement .= $tmplotstatic->getNomUrl(0, 'nolink'); + $latestmovement .= ' | '; + /*if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) { + print ''.dol_print_date($db->jdate($objp->sellby), 'day').' | '; + } + if (empty($conf->global->PRODUCT_DISABLE_EATBY)) { + print ''.dol_print_date($db->jdate($objp->eatby), 'day').' | '; + }*/ + } + $latestmovement .= ''; + $latestmovement .= $warehouse->getNomUrl(1); + $latestmovement .= " | \n"; + $latestmovement .= ''; + if ($objp->qty > 0) { + $latestmovement .= '+'; + } + $latestmovement .= $objp->qty.' | '; + $latestmovement .= "