This commit is contained in:
MatteoPistorello 2021-11-05 16:02:51 +01:00
commit 6ce3509d58
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ switch ($resource) {
$query = 'SELECT id, IF( codice_natura_fe IS NULL, IF(codice IS NULL, descrizione, CONCAT(codice, " - ", descrizione)), CONCAT( IF(codice IS NULL, descrizione, CONCAT(codice, " - ", descrizione)), " (", codice_natura_fe, ")" ) ) AS descrizione, percentuale FROM co_iva |where| ORDER BY descrizione ASC';
foreach ($elements as $element) {
$filter[] = 'id='.prepare($element);
$filter[] = '(deleted_at IS NULL OR id='.prepare($element).')';
}
if (!empty($search)) {