diff --git a/app/src/Controller/Ventas/Facturacion.php b/app/src/Controller/Ventas/Facturacion.php index f5081e5..18203ef 100644 --- a/app/src/Controller/Ventas/Facturacion.php +++ b/app/src/Controller/Ventas/Facturacion.php @@ -29,7 +29,7 @@ class Facturacion extends Ideal\Controller $uf = $ufService->get($venta->currentEstado()->fecha); $terreno = $terrenoService->valor($venta->proyecto()->id); $lastNov = new DateTimeImmutable((new DateTimeImmutable())->sub(new DateInterval('P1Y'))->format('Y-11-1')); - $prevMonth = $venta->currentEstado()->fecha->sub(new DateInterval('P1M')); + $prevMonth = $venta->currentEstado()->fecha->sub(new DateInterval('P2M')); if ($prevMonth->format('m') === $venta->currentEstado()->fecha->format('m')) { $prevMonth = $prevMonth->sub(new DateInterval('P10D')); }