From 0bb62c3694ad17b0791107184928b1879b284578 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Thu, 13 Apr 2023 09:57:06 +0200 Subject: [PATCH] Retrofix stampe preventivi --- update/2_4_43.sql | 6 +++--- update/2_4_44.sql | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/update/2_4_43.sql b/update/2_4_43.sql index 9c1ed1e59..9825bb57e 100644 --- a/update/2_4_43.sql +++ b/update/2_4_43.sql @@ -36,10 +36,10 @@ UPDATE `an_anagrafiche` SET `ragione_sociale` = CONCAT(cognome, " ", nome) WHERE -- Aggiunto options images su stampe preventivi e ordini per gestire la visualizzazione delle immagini UPDATE `zz_prints` SET `options` = '{\"pricing\": false, \"last-page-footer\": true, \"images\": true}' WHERE `zz_prints`.`name` = "Preventivo (senza costi)"; UPDATE `zz_prints` SET `options` = '{\"pricing\": true, \"last-page-footer\": true, \"images\": true}' WHERE `zz_prints`.`name` = "Preventivo"; -UPDATE `zz_prints` SET `options` = '{\"pricing\":true, \"hide_total\":true, \"images\": true}' WHERE `zz_prints`.`name` = "Preventivo (senza totali)"; -UPDATE `zz_prints` SET `options` = '{\"pricing\":false, \"show_only_total\":true, \"images\": true}' WHERE `zz_prints`.`name` = "Preventivo (solo totale)"; +UPDATE `zz_prints` SET `options` = '{\"pricing\":true, \"hide-total\":true, \"images\": true}' WHERE `zz_prints`.`name` = "Preventivo (senza totali)"; +UPDATE `zz_prints` SET `options` = '{\"pricing\":false, \"show-only-total\":true, \"images\": true}' WHERE `zz_prints`.`name` = "Preventivo (solo totale)"; UPDATE `zz_prints` SET `options` = '{\"pricing\": false, \"last-page-footer\": true, \"images\": true}' WHERE `zz_prints`.`name` = "Ordine cliente (senza costi)"; UPDATE `zz_prints` SET `options` = '{\"pricing\": true, \"last-page-footer\": true, \"images\": true}' WHERE `zz_prints`.`name` = "Ordine cliente"; -UPDATE `zz_prints` SET `options` = '{\"pricing\": true, \"last-page-footer\": true, \"hide_codice\": true, \"images\": true}' WHERE `zz_prints`.`name` = "Ordine cliente (senza codici)"; +UPDATE `zz_prints` SET `options` = '{\"pricing\": true, \"last-page-footer\": true, \"hide-codice\": true, \"images\": true}' WHERE `zz_prints`.`name` = "Ordine cliente (senza codici)"; UPDATE `zz_prints` SET `options` = '{\"pricing\":false, \"images\": false}' WHERE `zz_prints`.`name` = "Ordine fornitore (senza costi)"; UPDATE `zz_prints` SET `options` = '{\"pricing\":true, \"images\": false}' WHERE `zz_prints`.`name` = "Ordine fornitore"; diff --git a/update/2_4_44.sql b/update/2_4_44.sql index c339c8a84..3fce57ec6 100644 --- a/update/2_4_44.sql +++ b/update/2_4_44.sql @@ -276,3 +276,7 @@ GROUP BY HAVING 2=2" WHERE `name` = 'Pagamenti'; +-- Fix vista Stampe +UPDATE `zz_prints` SET `options` = '{\"pricing\": true, \"last-page-footer\": true, \"hide-codice\": true, \"images\": true}' WHERE `zz_prints`.`name` = "Ordine cliente (senza codici)"; +UPDATE `zz_prints` SET `options` = '{\"pricing\":true, \"hide-total\":true, \"images\": true}' WHERE `zz_prints`.`name` = "Preventivo (senza totali)"; +UPDATE `zz_prints` SET `options` = '{\"pricing\":false, \"show-only-total\":true, \"images\": true}' WHERE `zz_prints`.`name` = "Preventivo (solo totale)"; \ No newline at end of file