FIX: valor cuota al agregar usa . en formato para miles. Ahora limpia los . antes de agregar cuotas. #6
@ -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);
|
||||
|
Reference in New Issue
Block a user