Reajuste
This commit is contained in:
@ -123,8 +123,10 @@ class Pago
|
||||
{
|
||||
$pago->estados = $this->estadoPagoRepository->fetchByPago($pago->id);
|
||||
$pago->currentEstado = $this->estadoPagoRepository->fetchCurrentByPago($pago->id);
|
||||
if (($pago->uf === null or $pago->uf === 0.0) and $pago->fecha < new DateTimeImmutable()) {
|
||||
$pago->uf = $this->moneyService->getUF($pago->fecha);
|
||||
if (($pago->uf === null or $pago->uf === 0.0)
|
||||
and $pago->currentEstado->tipoEstadoPago->descripcion === 'abonado'
|
||||
and $pago->currentEstado->fecha <= new DateTimeImmutable()) {
|
||||
$pago->uf = $this->moneyService->getUF($pago->currentEstado->fecha);
|
||||
if ($pago->uf !== 0.0) {
|
||||
$this->pagoRepository->edit($pago, ['uf' => $pago->uf]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user