From 7cf76e6da36a3e6d26240261ccc0855338c8a7db Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 2 Jan 2026 20:20:11 +0100 Subject: [PATCH] Debug v23 --- htdocs/compta/cashcontrol/cashcontrol_card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/cashcontrol/cashcontrol_card.php b/htdocs/compta/cashcontrol/cashcontrol_card.php index 1b6d66cf9e6..16a4b1435a3 100644 --- a/htdocs/compta/cashcontrol/cashcontrol_card.php +++ b/htdocs/compta/cashcontrol/cashcontrol_card.php @@ -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'; }