Usando variables definidas

This commit is contained in:
Juan Pablo Vial
2025-05-12 14:04:58 -04:00
parent d78bdaa7f5
commit 32130f0bc2
2 changed files with 3 additions and 4 deletions

View File

@ -151,9 +151,8 @@ class Invoice extends AbstractEndPoint
protected function datosCuota(Model\Venta\Cuota $cuota): string
{
return json_encode([
'Numero' => $cuota->numero,
'valor' => $cuota->pago->valor,
'UF' => $cuota->pago->valor()
'numero' => $cuota->numero,
'monto_clp' => $cuota->pago->valor
]);
}
}

View File

@ -98,7 +98,7 @@ class Subscription extends AbstractEndPoint
{
$datos = [
'proyecto' => $venta->proyecto()->descripcion,
'propiedad' => $venta->propiedad()->summary()
'unidades' => $venta->propiedad()->summary()
];
return json_encode($datos);
}