FIX: cartola BCI

This commit is contained in:
Juan Pablo Vial
2024-03-20 17:52:34 -03:00
parent 85ef4dd60e
commit eb38236926
2 changed files with 60 additions and 37 deletions

View File

@ -3,6 +3,7 @@ namespace Incoviba\Model;
use DateTimeInterface;
use Incoviba\Common\Ideal;
use Incoviba\Common\Implement\Exception\EmptyResult;
use Incoviba\Model\Movimiento\Detalle;
class Movimiento extends Ideal\Model
@ -19,7 +20,11 @@ class Movimiento extends Ideal\Model
public function getDetalles(): ?Detalle
{
if (!isset($this->detalles)) {
$this->detalles = $this->runFactory('detalles');
try {
$this->detalles = $this->runFactory('detalles');
} catch (EmptyResult) {
$this->detalles = null;
}
}
return $this->detalles;
}