Backport EXPENSEREPORT_ALLOW_OVERLAPPING_PERIODS to solve blocking

situation.
This commit is contained in:
Laurent Destailleur 2018-04-30 17:45:34 +02:00
parent e5df7e206b
commit ab85fa8721

View File

@ -216,7 +216,7 @@ if (empty($reshook))
if ($ret < 0) $error++;
}
if ($object->periode_existe($fuser,$object->date_debut,$object->date_fin))
if (empty($conf->global->EXPENSEREPORT_ALLOW_OVERLAPPING_PERIODS) && $object->periode_existe($fuser,$object->date_debut,$object->date_fin))
{
$error++;
setEventMessages($langs->trans("ErrorDoubleDeclaration"), null, 'errors');