Fix minore stampe liquidazione iva
This commit is contained in:
parent
9bd6dbba01
commit
00f69a483e
|
@ -36,7 +36,9 @@ $periodi[] = [
|
||||||
|
|
||||||
$month_start = 1;
|
$month_start = 1;
|
||||||
$month_end = 3;
|
$month_end = 3;
|
||||||
for ($i=1; $i<=4; $i++) {
|
|
||||||
|
if (setting('Liquidazione iva') == 'Trimestrale') {
|
||||||
|
for ($i=1; $i<=4; $i++) {
|
||||||
$periodi[] = [
|
$periodi[] = [
|
||||||
'id' => ''.$i.'_trimestre',
|
'id' => ''.$i.'_trimestre',
|
||||||
'text' => tr('_NUM_° Trimestre _YEAR_', ['_NUM_' => $i, '_YEAR_' => $year]),
|
'text' => tr('_NUM_° Trimestre _YEAR_', ['_NUM_' => $i, '_YEAR_' => $year]),
|
||||||
|
@ -45,9 +47,11 @@ for ($i=1; $i<=4; $i++) {
|
||||||
];
|
];
|
||||||
$month_start += 3;
|
$month_start += 3;
|
||||||
$month_end += 3;
|
$month_end += 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($i=1; $i<=12; $i++) {
|
if (setting('Liquidazione iva') == 'Mensile') {
|
||||||
|
for ($i=1; $i<=12; $i++) {
|
||||||
$month = (new Carbon($year.'-'.$i.'-01'))->locale('it')->getTranslatedMonthName('IT MMMM');
|
$month = (new Carbon($year.'-'.$i.'-01'))->locale('it')->getTranslatedMonthName('IT MMMM');
|
||||||
$periodi[] = [
|
$periodi[] = [
|
||||||
'id' => ''.$i.'_mese',
|
'id' => ''.$i.'_mese',
|
||||||
|
@ -55,6 +59,7 @@ for ($i=1; $i<=12; $i++) {
|
||||||
'date_start' => $year.','.$i.',01',
|
'date_start' => $year.','.$i.',01',
|
||||||
'date_end' => $year.','.$i.','.(new Carbon($year.'-'.$i.'-01'))->endOfMonth()->format('d'),
|
'date_end' => $year.','.$i.','.(new Carbon($year.'-'.$i.'-01'))->endOfMonth()->format('d'),
|
||||||
];
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue