1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-07 13:22:15 +01:00

Fix numerazione

This commit is contained in:
Beppe 2022-09-01 17:48:05 +02:00
parent 4662905909
commit ab94b61fe1

View File

@ -204,7 +204,7 @@ class Generator
//Lunghezza maschera
$mask_length = strlen($maschera);
$query = Manager::table($table)->select($field)->where($field, 'like', $maschera)->orderByRaw('LENGTH(numero_esterno) DESC')->orderByRaw($order);
$query = Manager::table($table)->select($field)->where($field, 'like', $maschera)->orderByRaw('LENGTH('.$field.') DESC')->orderByRaw($order);
foreach ($where as $and) {
$query->whereRaw($and);