From dba7f554cc3873814b701f0787b7f5adeb3e81a1 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Tue, 11 Jan 2022 17:23:01 +0100 Subject: [PATCH] Fix controllo numero intervento --- modules/interventi/modutil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/interventi/modutil.php b/modules/interventi/modutil.php index f0a1b6d2c..338e18941 100755 --- a/modules/interventi/modutil.php +++ b/modules/interventi/modutil.php @@ -343,7 +343,7 @@ function verifica_numero_intervento(Intervento $intervento) // Recupero maschera per questo segmento $maschera = setting('Formato codice attività'); - if ((strpos($maschera, 'YYYY') !== false) or (strpos($maschera, 'yy') !== false)) { + if ((strpos($maschera, 'YYYY') == false) or (strpos($maschera, 'yy') == false)) { $ultimo = Generator::getPreviousFrom($maschera, 'in_interventi', 'codice', [ 'DATE(data_richiesta) < '.prepare($data->format('Y-m-d')), 'YEAR(data_richiesta) = '.prepare($data->format('Y')),