fixed search clients
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
client.text ||
|
||||
"Nome non disponibile"
|
||||
).trim();
|
||||
const id = client.IdCliente || client.id || "";
|
||||
const codiceCliente = (
|
||||
client.CodiceCliente ??
|
||||
client.codiceCliente ??
|
||||
@@ -84,9 +85,8 @@
|
||||
const shortCode =
|
||||
suffix || (codiceCliente ? codiceCliente.charAt(0) : "--");
|
||||
|
||||
// Nome - I - CODICE_COMPLETO
|
||||
const codePart = codiceCliente ? ` - ${codiceCliente}` : "";
|
||||
return `${nome} - ${shortCode}${codePart}`;
|
||||
// Nome - I - 123
|
||||
return `${nome} - ${shortCode} - ${id}`;
|
||||
}
|
||||
|
||||
// Cache of resolved client names: id → name
|
||||
|
||||
Reference in New Issue
Block a user