Debug v23

This commit is contained in:
Laurent Destailleur
2026-01-02 20:20:11 +01:00
parent 489dfba69f
commit 7cf76e6da3

View File

@@ -426,7 +426,7 @@ if ($action == "create" || $action == "start") {
}
} else {
$endperiod = dol_get_first_hour(GETPOSTDATE('close', 'getpostend'));
if ($endperiod >= dol_now()) {
if ($endperiod >= dol_now() && $mysoc->country_code == 'FR') { // For other countries we may need to make 2 cash control in the same day (one at opening and one at closing)
setEventMessages($langs->trans("CashControlEndDayMustNotBeInPast"), null, 'errors');
$action = 'create';
}