Fix minore stampe liquidazione iva

This commit is contained in:
Pek5892 2023-04-07 11:51:06 +02:00
parent 9bd6dbba01
commit 00f69a483e
1 changed files with 22 additions and 17 deletions

View File

@ -36,6 +36,8 @@ $periodi[] = [
$month_start = 1;
$month_end = 3;
if (setting('Liquidazione iva') == 'Trimestrale') {
for ($i=1; $i<=4; $i++) {
$periodi[] = [
'id' => ''.$i.'_trimestre',
@ -46,7 +48,9 @@ for ($i=1; $i<=4; $i++) {
$month_start += 3;
$month_end += 3;
}
}
if (setting('Liquidazione iva') == 'Mensile') {
for ($i=1; $i<=12; $i++) {
$month = (new Carbon($year.'-'.$i.'-01'))->locale('it')->getTranslatedMonthName('IT MMMM');
$periodi[] = [
@ -56,6 +60,7 @@ for ($i=1; $i<=12; $i++) {
'date_end' => $year.','.$i.','.(new Carbon($year.'-'.$i.'-01'))->endOfMonth()->format('d'),
];
}
}
// Trovo id_print della stampa