1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-15 08:56:20 +01:00

fix minore

This commit is contained in:
Pek5892 2023-02-16 16:54:48 +01:00
parent 4c12275966
commit 1c592767d6

View File

@ -224,10 +224,6 @@ class Ordine extends Document
}
}
$ultimo = Generator::getPreviousFrom($maschera, 'or_ordini', 'numero', [
'YEAR(data) = '.prepare(date('Y', strtotime($data))),
'idtipoordine IN (SELECT id FROM or_tipiordine WHERE dir = '.prepare($direzione).')',
]);
$numero = Generator::generate($maschera, $ultimo);
return $numero;