FIX: valor cuota al agregar usa . en formato para miles. Ahora limpia los . antes de agregar cuotas. #6
@ -1,14 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Incoviba\Controller\Ventas;
|
namespace Incoviba\Controller\Ventas;
|
||||||
|
|
||||||
|
use Psr\Http\Message\ResponseInterface;
|
||||||
|
use Psr\Http\Message\ServerRequestInterface;
|
||||||
use DateTimeImmutable;
|
use DateTimeImmutable;
|
||||||
use Incoviba\Common\Alias\View;
|
use Incoviba\Common\Alias\View;
|
||||||
use Incoviba\Common\Implement\Exception\EmptyResult;
|
use Incoviba\Common\Implement\Exception\EmptyResult;
|
||||||
use Incoviba\Model;
|
use Incoviba\Model;
|
||||||
use Incoviba\Repository;
|
use Incoviba\Repository;
|
||||||
use Incoviba\Service;
|
use Incoviba\Service;
|
||||||
use Psr\Http\Message\ResponseInterface;
|
|
||||||
use Psr\Http\Message\ServerRequestInterface;
|
|
||||||
|
|
||||||
class Cuotas
|
class Cuotas
|
||||||
{
|
{
|
||||||
@ -100,7 +100,7 @@ class Cuotas
|
|||||||
'fecha' => $body["fecha{$i}"],
|
'fecha' => $body["fecha{$i}"],
|
||||||
'banco' => (int) $body["banco{$i}"],
|
'banco' => (int) $body["banco{$i}"],
|
||||||
'identificador' => $body["identificador{$i}"],
|
'identificador' => $body["identificador{$i}"],
|
||||||
'valor' => $valorService->clean($body["valor{$i}"]),
|
'valor' => $valorService->clean(str_replace('.', '', $body["valor{$i}"])),
|
||||||
'numero' => $i + 1,
|
'numero' => $i + 1,
|
||||||
];
|
];
|
||||||
$pieService->addCuota($data);
|
$pieService->addCuota($data);
|
||||||
|
Reference in New Issue
Block a user