Fix minori attività

This commit is contained in:
Pek5892 2024-05-14 12:25:26 +02:00
parent b3c4fff620
commit 0036e53a1d
4 changed files with 6 additions and 6 deletions

View File

@ -62,10 +62,10 @@ include_once __DIR__.'/../../core.php';
foreach ($rs_stati as $stato) {
?>
<div class="col-md-4">
<label><?php echo $stato['name']; ?></label>
<label><?php echo $stato['title']; ?></label>
<div class="material-switch">
<input id="<?php echo $stato['name']; ?>" name="<?php echo $stato['name']; ?>" type="checkbox" checked/>
<label for="<?php echo $stato['name']; ?>" class="label-success"></label>
<input id="<?php echo $stato['title']; ?>" name="<?php echo $stato['title']; ?>" type="checkbox" checked/>
<label for="<?php echo $stato['title']; ?>" class="label-success"></label>
</div>
</div>
<?php

View File

@ -33,7 +33,7 @@ function duplicaOrdine() {
$stati = $dbo->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 '

View File

@ -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 {

View File

@ -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[] = '<i class="'.$stato['icona'].'"></i> <small>'.$stato['name'].'</small>';
$descrizione_stati[] = '<i class="'.$stato['icona'].'"></i> <small>'.$stato['title'].'</small>';
}
echo '