mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Fix minore stampe liquidazione iva
This commit is contained in:
parent
9bd6dbba01
commit
00f69a483e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user