Editar credito

This commit is contained in:
Juan Pablo Vial
2024-02-15 18:57:56 -03:00
parent 1621d6fe30
commit 51cabee824
10 changed files with 383 additions and 15 deletions

View File

@ -17,7 +17,7 @@ class Credito extends Ideal\Repository
public function create(?array $data = null): Model\Venta\Credito
{
$map = (new Implement\Repository\MapperParser())
$map = (new Implement\Repository\MapperParser(['valor']))
->register('pago', (new Implement\Repository\Mapper())
->setFunction(function($data) {
return $this->pagoService->getById($data['pago']);