diff --git a/htdocs/product/stock/class/productlot.class.php b/htdocs/product/stock/class/productlot.class.php
index 6128f8dcf17..1f97fa3f4d7 100644
--- a/htdocs/product/stock/class/productlot.class.php
+++ b/htdocs/product/stock/class/productlot.class.php
@@ -524,6 +524,35 @@ class Productlot extends CommonObject
}
}
+
+ /**
+ * Return label of status of object
+ *
+ * @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
+ * @return string Label of status
+ */
+ function getLibStatut($mode=0)
+ {
+ return $this->LibStatut(0,$mode);
+ }
+
+ /**
+ * Return label of a given status
+ *
+ * @param int $statut Status
+ * @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
+ * @return string Label of status
+ */
+ function LibStatut($statut,$mode=0)
+ {
+ global $langs;
+
+ //$langs->load('stocks');
+
+ return '';
+ }
+
+
/**
* Return a link to the a lot card (with optionaly the picto)
* Use this->id,this->lastname, this->firstname
diff --git a/htdocs/product/stock/productlot_card.php b/htdocs/product/stock/productlot_card.php
index 3407c75a6f5..0df3df3ac4f 100644
--- a/htdocs/product/stock/productlot_card.php
+++ b/htdocs/product/stock/productlot_card.php
@@ -270,24 +270,6 @@ llxHeader('','ProductLot','');
$form=new Form($db);
-// Put here content of your page
-
-// Example : Adding jquery code
-print '';
-
-
// Part to create
if ($action == 'create')
{
@@ -335,19 +317,15 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print $formconfirm;
}
- print '
'."\n";
$linkback = '' . $langs->trans("BackToList") . '';
- // Ref
- print '| ' . $langs->trans('Batch') . ' | ';
- print '';
- print $form->showrefnav($object, 'id', $linkback, 1, 'rowid', 'batch');
- print ' | ';
- print '
';
+ dol_banner_tab($object, 'id', $linkback, 1, 'rowid', 'batch');
+
+ print ''."\n";
// Product
- print '| '.$langs->trans("Product").' | ';
+ print ' |
| '.$langs->trans("Product").' | ';
$producttmp = new Product($db);
$producttmp->fetch($object->fk_product);
print $producttmp->getNomUrl(1, 'stock');
@@ -356,7 +334,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
// Eat by
print ' |
| ';
print $form->editfieldkey($langs->trans('Eatby'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
- print ' | ';
+ print ' | ';
print $form->editfieldval($langs->trans('Eatby'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
print ' | ';
print '
';
@@ -364,7 +342,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
// Sell by
print '| ';
print $form->editfieldkey($langs->trans('Sellby'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
- print ' | ';
+ print ' | ';
print $form->editfieldval($langs->trans('Sellby'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
print ' | ';
print '
';