FIX: valor cuota al agregar usa . en formato para miles. Ahora limpia los . antes de agregar cuotas.

This commit is contained in:
Juan Pablo Vial
2024-12-30 17:41:59 -03:00
parent 95f9f4ef05
commit a8bab175a2

View File

@ -1,14 +1,14 @@
<?php
namespace Incoviba\Controller\Ventas;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use DateTimeImmutable;
use Incoviba\Common\Alias\View;
use Incoviba\Common\Implement\Exception\EmptyResult;
use Incoviba\Model;
use Incoviba\Repository;
use Incoviba\Service;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
class Cuotas
{
@ -100,7 +100,7 @@ class Cuotas
'fecha' => $body["fecha{$i}"],
'banco' => (int) $body["banco{$i}"],
'identificador' => $body["identificador{$i}"],
'valor' => $valorService->clean($body["valor{$i}"]),
'valor' => $valorService->clean(str_replace('.', '', $body["valor{$i}"])),
'numero' => $i + 1,
];
$pieService->addCuota($data);