Fix minore select articoli

This commit is contained in:
MatteoPistorello 2022-09-07 17:43:21 +02:00
parent df888e84ec
commit 37cb00a7a6
1 changed files with 1 additions and 1 deletions

View File

@ -37,8 +37,8 @@ switch ($resource) {
$idagente = $superselect['idagente']; $idagente = $superselect['idagente'];
$query = "SELECT $query = "SELECT
DISTINCT mg_articoli.id,
IF(`categoria`.`nome` IS NOT NULL, CONCAT(`categoria`.`nome`, IF(`sottocategoria`.`nome` IS NOT NULL, CONCAT(' (', `sottocategoria`.`nome`, ')'), '-')), '<i>".tr('Nessuna categoria')."</i>') AS optgroup, IF(`categoria`.`nome` IS NOT NULL, CONCAT(`categoria`.`nome`, IF(`sottocategoria`.`nome` IS NOT NULL, CONCAT(' (', `sottocategoria`.`nome`, ')'), '-')), '<i>".tr('Nessuna categoria')."</i>') AS optgroup,
mg_articoli.id,
mg_articoli.barcode, mg_articoli.barcode,
mg_articoli.".($prezzi_ivati ? 'prezzo_vendita_ivato' : 'prezzo_vendita').' AS prezzo_vendita, mg_articoli.".($prezzi_ivati ? 'prezzo_vendita_ivato' : 'prezzo_vendita').' AS prezzo_vendita,