|
|
@@ -516,7 +516,7 @@ class Record extends Component
|
|
|
break;
|
|
|
|
|
|
case 'MESE PRECEDENTE':
|
|
|
- $lastMonth = $today->copy()->subMonth();
|
|
|
+ $lastMonth = $today->copy()->subMonthNoOverflow();
|
|
|
$this->fromDate = $lastMonth->startOfMonth()->format('Y-m-d');
|
|
|
$this->toDate = $lastMonth->endOfMonth()->format('Y-m-d');
|
|
|
break;
|
|
|
@@ -538,12 +538,12 @@ class Record extends Component
|
|
|
break;
|
|
|
|
|
|
case 'ULTIMO TRIMESTRE':
|
|
|
- $this->fromDate = $today->copy()->subMonths(3)->format('Y-m-d');
|
|
|
+ $this->fromDate = $today->copy()->subMonthsNoOverflow(3)->format('Y-m-d');
|
|
|
$this->toDate = $today->format('Y-m-d');
|
|
|
break;
|
|
|
|
|
|
case 'ULTIMO QUADRIMESTRE':
|
|
|
- $this->fromDate = $today->copy()->subMonths(4)->format('Y-m-d');
|
|
|
+ $this->fromDate = $today->copy()->subMonthsNoOverflow(4)->format('Y-m-d');
|
|
|
$this->toDate = $today->format('Y-m-d');
|
|
|
break;
|
|
|
}
|