diff --git a/htdocs/product/card.php b/htdocs/product/card.php
index 352a66e42cc..4839f26772f 100644
--- a/htdocs/product/card.php
+++ b/htdocs/product/card.php
@@ -1299,7 +1299,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '';
}
// Traceability
- if ( empty($conf->global->PRODUCT_DISABLE_TRACEABILITY)) {
+ if ($conf->global->PRODUCT_LOT_ENABLE_TRACEABILITY) {
print '
| '.$langs->trans("LifeTime").' | |
';
print '| '.$langs->trans("QCFrequency").' | |
';
}
@@ -1802,7 +1802,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
}
// Traceability
- if ( empty($conf->global->PRODUCT_DISABLE_TRACEABILITY)) {
+ if ($conf->global->PRODUCT_LOT_ENABLE_TRACEABILITY) {
print '| '.$langs->trans("LifeTime").' | |
';
print '| '.$langs->trans("QCFrequency").' | |
';
}
@@ -2285,7 +2285,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
}
// Traceability
- if ( empty($conf->global->PRODUCT_DISABLE_TRACEABILITY)) {
+ if ($conf->global->PRODUCT_LOT_ENABLE_TRACEABILITY) {
print '| '.$langs->trans("LifeTime").' | '.$object->lifetime.' |
';
print '| '.$langs->trans("QCFrequency").' | '.$object->qc_frequency.' |
';
}
diff --git a/htdocs/product/stock/productlot_card.php b/htdocs/product/stock/productlot_card.php
index 2c3d0ebee08..8e311c185bb 100644
--- a/htdocs/product/stock/productlot_card.php
+++ b/htdocs/product/stock/productlot_card.php
@@ -484,7 +484,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// Traceability info
- if (empty($conf->global->PRODUCT_DISABLE_TRACEABILITY)) {
+ if (!empty($conf->global->PRODUCT_LOT_ENABLE_TRACEABILITY)) {
print '| '.$form->editfieldkey($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer).' | ';
print ''.$form->editfieldval($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer, 'datepicker').' | ';
print '
';
@@ -494,9 +494,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print '| '.$form->editfieldkey($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer).' | ';
print ''.$form->editfieldval($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer, 'datepicker').' | ';
print '
';
- print '| '.$form->editfieldkey($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer).' | ';
- print ''.$form->editfieldval($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer, 'datepicker').' | ';
- print '
';
+ // print '| '.$form->editfieldkey($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer).' | ';
+ // print ''.$form->editfieldval($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer, 'datepicker').' | ';
+ // print '
';
print '| '.$form->editfieldkey($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer).' | ';
print ''.$form->editfieldval($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer, 'numeric').' | ';
print '
';