From 0036e53a1d4032e2678ccac24695c47fdfa54082 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Tue, 14 May 2024 12:25:26 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20minori=20attivit=C3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/mappa/edit.php | 6 +++--- modules/ordini/buttons.php | 2 +- modules/ordini/crea_documento.php | 2 +- modules/primanota/add.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/mappa/edit.php b/modules/mappa/edit.php index d34914bb4..1731510a9 100644 --- a/modules/mappa/edit.php +++ b/modules/mappa/edit.php @@ -62,10 +62,10 @@ include_once __DIR__.'/../../core.php'; foreach ($rs_stati as $stato) { ?>
- +
- - + +
fetchArray('SELECT `title` FROM `or_statiordine` LEFT JOIN `or_statiordine_lang` ON (`or_statiordine`.`id`=`or_statiordine_lang`.`id_record` AND `or_statiordine_lang`.`id_lang`= '.prepare(Models\Locale::getDefault()->id).') WHERE `is_fatturabile` = 1'); foreach ($stati as $stato) { - $stati_importabili[] = $stato['name']; + $stati_importabili[] = $stato['title']; } echo ' diff --git a/modules/ordini/crea_documento.php b/modules/ordini/crea_documento.php index a0f8a4ea1..bd3b86186 100755 --- a/modules/ordini/crea_documento.php +++ b/modules/ordini/crea_documento.php @@ -38,7 +38,7 @@ if (get('documento') == 'fattura') { $op = 'add_ordine_cliente'; $tipo_documento_finale = Ordine::class; } elseif (get('documento') == 'intervento') { - $final_module = 'Interventi'; + $final_module = 'Attività'; $op = $module->getTranslation('title', Models\Locale::getPredefined()->id) == 'Ordini cliente' ? 'add_documento' : 'add_intervento'; $tipo_documento_finale = Intervento::class; } else { diff --git a/modules/primanota/add.php b/modules/primanota/add.php index 8b460cc03..727b36a3f 100755 --- a/modules/primanota/add.php +++ b/modules/primanota/add.php @@ -246,7 +246,7 @@ if (!empty($id_records) && get('origine') == 'fatture' && !empty($counter)) { $descrizione_stati = []; $stati = $database->fetchArray("SELECT * FROM `co_statidocumento` LEFT JOIN `co_statidocumento_lang` ON (`co_statidocumento`.`id` = `co_statidocumento_lang`.`id_record` AND `co_statidocumento_lang`.`id_lang` = '".prepare(Models\Locale::getDefault()->id)."') WHERE `title` IN ('Emessa', 'Parzialmente pagato', 'Pagato') ORDER BY `title`"); foreach ($stati as $stato) { - $descrizione_stati[] = ' '.$stato['name'].''; + $descrizione_stati[] = ' '.$stato['title'].''; } echo '