From 09f340757960991196fa05edb6590dd4570b0cf5 Mon Sep 17 00:00:00 2001 From: loviuz Date: Fri, 17 Nov 2023 17:47:17 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20velocit=C3=A0=20caricamento=20lista?= =?UTF-8?q?=20allegati?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update/2_4_52.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update/2_4_52.sql b/update/2_4_52.sql index 4010c384b..ad82e1552 100644 --- a/update/2_4_52.sql +++ b/update/2_4_52.sql @@ -32,4 +32,7 @@ ALTER TABLE `mg_prodotti` ADD `id_riga_contratto` INT NULL AFTER `id_riga_interv ALTER TABLE `mg_prodotti` ADD FOREIGN KEY (`id_riga_contratto`) REFERENCES `co_righe_contratti`(`id`) ON DELETE CASCADE; -- Aggiunta stampa preventivo (solo totale imponibile) -INSERT INTO `zz_prints` (`id_module`, `is_record`, `name`, `title`, `filename`, `directory`, `previous`, `options`, `icon`, `version`, `compatibility`, `order`, `predefined`, `default`, `enabled`, `available_options`) VALUES ((SELECT `id` FROM `zz_modules` WHERE `name` = 'Preventivi'), '1', 'Preventivo(solo totale imponibile)', 'Preventivo (solo totale imponibile)', 'Preventivo num. {numero} del {data} rev {revisione}', 'preventivi', 'idpreventivo', '{\"pricing\": false, \"last-page-footer\": true, \"images\": true, \"no-iva\":true, \"show-only-total\":true }', 'fa fa-print', '', '', '0', '0', '1', '1', '{\"pricing\":\"Visualizzare i prezzi\", \"hide-total\": \"Nascondere i totali delle righe\", \"show-only-total\": \"Visualizzare solo i totali del documento\", \"hide-header\": \"Nascondere intestazione\", \"hide-footer\": \"Nascondere footer\", \"last-page-footer\": \"Visualizzare footer solo su ultima pagina\", \"hide-item-number\": \"Nascondere i codici degli articoli\"}'); \ No newline at end of file +INSERT INTO `zz_prints` (`id_module`, `is_record`, `name`, `title`, `filename`, `directory`, `previous`, `options`, `icon`, `version`, `compatibility`, `order`, `predefined`, `default`, `enabled`, `available_options`) VALUES ((SELECT `id` FROM `zz_modules` WHERE `name` = 'Preventivi'), '1', 'Preventivo(solo totale imponibile)', 'Preventivo (solo totale imponibile)', 'Preventivo num. {numero} del {data} rev {revisione}', 'preventivi', 'idpreventivo', '{\"pricing\": false, \"last-page-footer\": true, \"images\": true, \"no-iva\":true, \"show-only-total\":true }', 'fa fa-print', '', '', '0', '0', '1', '1', '{\"pricing\":\"Visualizzare i prezzi\", \"hide-total\": \"Nascondere i totali delle righe\", \"show-only-total\": \"Visualizzare solo i totali del documento\", \"hide-header\": \"Nascondere intestazione\", \"hide-footer\": \"Nascondere footer\", \"last-page-footer\": \"Visualizzare footer solo su ultima pagina\", \"hide-item-number\": \"Nascondere i codici degli articoli\"}'); + +-- Aggiunta indice per ricerca su files piĆ¹ rapida +ALTER TABLE `zz_files` ADD INDEX(`id_record`); \ No newline at end of file From eac54f9c9878cd696acc1d762e1d3e9cb840117b Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 17 Nov 2023 18:07:05 +0100 Subject: [PATCH 2/2] Update functions.js --- assets/src/js/functions/functions.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/src/js/functions/functions.js b/assets/src/js/functions/functions.js index b1d50d23b..542d49211 100755 --- a/assets/src/js/functions/functions.js +++ b/assets/src/js/functions/functions.js @@ -383,6 +383,11 @@ function renderMessages() { let info = messages.info ? messages.info : []; info.forEach(function (element) { if (element) toastr["success"](element); + Toast.fire({ + icon: "success", + title: element, + position: 'top', + }); }); let warning = messages.warning ? messages.warning : [];