Modifiche minori al plugin Prezzi specifici

This commit is contained in:
MatteoPistorello 2021-03-25 12:12:05 +01:00
parent 3f4209d434
commit 6f31f3ddb8
2 changed files with 8 additions and 5 deletions

View File

@ -41,7 +41,7 @@ echo '
<div class="box-body">
<div class="row">
<div class="col-md-9">
{[ "type": "select", "label": "'.tr('Cliente').'", "name": "id_cliente_informazioni", "ajax-source": "clienti" ]}
{[ "type": "select", "label": "'.tr('Cliente').'", "name": "id_cliente_informazioni", "required":"1", "ajax-source": "clienti" ]}
</div>
<div class="col-md-3">
@ -147,7 +147,7 @@ echo '
<div class="box-body">
<div class="row">
<div class="col-md-9">
{[ "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" ]}
</div>
<div class="col-md-3">
@ -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");
}
}
</script>';

View File

@ -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';
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';