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

Fix filtro iva

This commit is contained in:
Beppe 2021-11-05 13:10:40 +01:00
parent 8460ee36b1
commit d8626ba2d3

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)) {