Revert "Fix filtro iva"

This reverts commit d8626ba2d3.
This commit is contained in:
Luca 2022-05-26 17:45:53 +02:00
parent 8694f95cff
commit 99269cab1a
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[] = '(deleted_at IS NULL OR id='.prepare($element).')';
$filter[] = 'id='.prepare($element);
}
if (!empty($search)) {