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