- {[ "type": "select", "label": "'.tr('Fornitore').'", "name": "id_fornitore_informazioni", "ajax-source": "fornitori" ]}
+ {[ "type": "select", "label": "'.tr('Fornitore').'", "name": "id_fornitore_informazioni", "required":"1", "ajax-source": "fornitori" ]}
@@ -354,7 +354,7 @@ function aggiungiPrezzi(button) {
if (id_anagrafica) {
gestionePrezzi(id_anagrafica, direzione);
} else {
- swal("'.tr('Errore').'", "'.tr('Nessuna anagrafica selezionato').'", "error");
+ swal("'.tr('Attenzione').'", "'.tr('Inserire un\'anagrafica').'", "warning");
}
}
@@ -367,7 +367,7 @@ function aggiungiFornitore() {
if (id_fornitore) {
modificaFornitore("", id_fornitore);
} else {
- swal("'.tr('Errore').'", "'.tr('Nessun fornitore selezionato').'", "error");
+ swal("'.tr('Attenzione').'", "'.tr('Inserire un\'anagrafica').'", "warning");
}
}
';
diff --git a/update/2_4_23.sql b/update/2_4_23.sql
index 42ef8b91d..7585cff70 100644
--- a/update/2_4_23.sql
+++ b/update/2_4_23.sql
@@ -63,4 +63,7 @@ INSERT INTO `zz_api_resources` (`id`, `version`, `type`, `resource`, `class`, `e
(NULL, 'app-v1', 'retrieve', 'revisione', 'API\\App\\v1\\Revisione', '1')
-- Fix query listini
-UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM mg_prezzi_articoli\n INNER JOIN an_anagrafiche ON an_anagrafiche.idanagrafica = mg_prezzi_articoli.id_anagrafica\n INNER JOIN mg_articoli ON mg_articoli.id = mg_prezzi_articoli.id_articolo\n LEFT JOIN mg_categorie AS categoria ON mg_articoli.id_categoria=categoria.id\n LEFT JOIN mg_categorie AS sottocategoria ON mg_articoli.id_sottocategoria=sottocategoria.id\nWHERE 1=1 AND mg_articoli.deleted_at IS NULL AND an_anagrafiche.deleted_at IS NULL\nHAVING 2=2\nORDER BY an_anagrafiche.ragione_sociale' WHERE `zz_modules`.`name` = 'Listini';
\ No newline at end of file
+UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM mg_prezzi_articoli\n INNER JOIN an_anagrafiche ON an_anagrafiche.idanagrafica = mg_prezzi_articoli.id_anagrafica\n INNER JOIN mg_articoli ON mg_articoli.id = mg_prezzi_articoli.id_articolo\n LEFT JOIN mg_categorie AS categoria ON mg_articoli.id_categoria=categoria.id\n LEFT JOIN mg_categorie AS sottocategoria ON mg_articoli.id_sottocategoria=sottocategoria.id\nWHERE 1=1 AND mg_articoli.deleted_at IS NULL AND an_anagrafiche.deleted_at IS NULL\nHAVING 2=2\nORDER BY an_anagrafiche.ragione_sociale' WHERE `zz_modules`.`name` = 'Listini';
+
+-- Cambiato title al plugin prezzi specifici
+UPDATE `zz_plugins` SET `title` = 'Prezzi di listino' WHERE `zz_plugins`.`name` = 'Prezzi specifici articolo';
\ No newline at end of file