Editar cuota
This commit is contained in:
@ -43,7 +43,8 @@ class Pagos
|
||||
$output = [
|
||||
'input' => $body,
|
||||
'pago_id' => $pago_id,
|
||||
'pago' => null
|
||||
'pago' => null,
|
||||
'editado' => false
|
||||
];
|
||||
try {
|
||||
$pago = $pagoRepository->fetchById($pago_id);
|
||||
@ -52,6 +53,7 @@ class Pagos
|
||||
$body['fecha'] = $fecha->format('Y-m-d');
|
||||
}
|
||||
$output['pago'] = $pagoRepository->edit($pago, $body);
|
||||
$output['editado'] = true;
|
||||
} catch (EmptyResult) {}
|
||||
return $this->withJson($response, $output);
|
||||
}
|
||||
|
Reference in New Issue
Block a user