mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Fix controllo numero intervento
This commit is contained in:
@@ -343,7 +343,7 @@ function verifica_numero_intervento(Intervento $intervento)
|
|||||||
// Recupero maschera per questo segmento
|
// Recupero maschera per questo segmento
|
||||||
$maschera = setting('Formato codice attività');
|
$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', [
|
$ultimo = Generator::getPreviousFrom($maschera, 'in_interventi', 'codice', [
|
||||||
'DATE(data_richiesta) < '.prepare($data->format('Y-m-d')),
|
'DATE(data_richiesta) < '.prepare($data->format('Y-m-d')),
|
||||||
'YEAR(data_richiesta) = '.prepare($data->format('Y')),
|
'YEAR(data_richiesta) = '.prepare($data->format('Y')),
|
||||||
|
Reference in New Issue
Block a user