diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index 4b077d861f3..f3a1b1d86dd 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -910,8 +910,8 @@ if ($id > 0 || !empty($ref)) {
print '';
if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
print '
';
- $dlcdatesuffix = dol_mktime( 0, 0, 0, GETPOST( 'dlc' . $suffix . 'month' ), GETPOST( 'dlc' . $suffix . 'day' ), GETPOST( 'dlc' . $suffix . 'year' ) );
- print $form->selectDate( $dlcdatesuffix, 'dlc' . $suffix, '', '', 1, '' );
+ $dlcdatesuffix = dol_mktime(0, 0, 0, GETPOST('dlc' . $suffix . 'month'), GETPOST('dlc' . $suffix . 'day'), GETPOST('dlc' . $suffix . 'year'));
+ print $form->selectDate($dlcdatesuffix, 'dlc' . $suffix, '', '', 1, '');
print ' | ';
}
if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
@@ -1135,10 +1135,10 @@ if ($id > 0 || !empty($ref)) {
if (!empty($conf->productbatch->enabled)) {
print ''.$langs->trans("batch_number").' | ';
if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
- print '' . $langs->trans( "EatByDate" ) . ' | ';
+ print '' . $langs->trans("EatByDate") . ' | ';
}
if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
- print '' . $langs->trans( "SellByDate" ) . ' | ';
+ print '' . $langs->trans("SellByDate") . ' | ';
}
}
print ''.$langs->trans("QtyDispatched").' | ';
@@ -1195,10 +1195,10 @@ if ($id > 0 || !empty($ref)) {
$lot->fetch(0, $objp->pid, $objp->batch);
print ''.$lot->getNomUrl(1).' | ';
if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
- print '' . dol_print_date( $lot->eatby, 'day' ) . ' | ';
+ print '' . dol_print_date($lot->eatby, 'day') . ' | ';
}
if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
- print '' . dol_print_date( $lot->sellby, 'day' ) . ' | ';
+ print '' . dol_print_date($lot->sellby, 'day') . ' | ';
}
} else {
print ' | ';
diff --git a/htdocs/product/stock/productlot_card.php b/htdocs/product/stock/productlot_card.php
index f091de9d78e..0f706c3ccae 100644
--- a/htdocs/product/stock/productlot_card.php
+++ b/htdocs/product/stock/productlot_card.php
@@ -329,9 +329,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
// Eat by
if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
print '| ';
- print $form->editfieldkey( $langs->trans( 'EatByDate' ), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker' );
+ print $form->editfieldkey($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
print ' | ';
- print $form->editfieldval( $langs->trans( 'EatByDate' ), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker' );
+ print $form->editfieldval($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
print ' | ';
print '
';
}
@@ -339,9 +339,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
// Sell by
if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
print '| ';
- print $form->editfieldkey( $langs->trans( 'SellByDate' ), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker' );
+ print $form->editfieldkey($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
print ' | ';
- print $form->editfieldval( $langs->trans( 'SellByDate' ), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker' );
+ print $form->editfieldval($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
print ' | ';
print '
';
}