Skip to content

Commit 55e440e

Browse files
fix: title stampa bilancio
1 parent 3d20291 commit 55e440e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

templates/partitario_mastrino/header.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/*
43
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
54
* Copyright (C) DevCode s.r.l.
@@ -26,9 +25,15 @@
2625
*
2726
* La personalizzazione specifica dell'header deve comunque seguire lo standard della cartella custom: anche se il file header.php non esiste nella stampa originaria, se si vuole personalizzare l'header bisogna crearlo all'interno della cartella custom.
2827
*/
28+
29+
if (get('lev') == '3' || get('lev') == '2') {
30+
$title = tr('Mastrino', [], ['upper' => true]);
31+
} else {
32+
$title = tr('Bilancio', [], ['upper' => true]);
33+
}
2934
echo '
3035
<h5 style="border-bottom:1px solid #777; display:block;">
31-
<div class="col-xs-5">STAMPA MASTRINO <small>'.Translator::dateToLocale($date_start).' - '.Translator::dateTolocale($date_end).'</small></div>
36+
<div class="col-xs-5">STAMPA '.$title.' <small>'.Translator::dateToLocale($date_start).' - '.Translator::dateTolocale($date_end).'</small></div>
3237
<div class="col-xs-7 text-right">'.$azienda['ragione_sociale'].'</div>
3338
</h5>
3439
'.$conto1['descrizione'].'<br>';

0 commit comments

Comments
 (0)