FIX: edit payments
This commit is contained in:
@ -56,7 +56,11 @@ class Credito extends Ideal\Service
|
||||
} catch (DateMalformedStringException) {
|
||||
$fecha = new DateTimeImmutable();
|
||||
}
|
||||
$uf = $this->valorService->clean($data['uf']) ?? $this->moneyService->getUF($fecha);
|
||||
if (array_key_exists('uf', $data)) {
|
||||
$uf = $this->valorService->clean($data['uf']) ?? $this->moneyService->getUF($fecha);
|
||||
} else {
|
||||
$uf = $this->moneyService->getUF($fecha);
|
||||
}
|
||||
try {
|
||||
$tipoPago = $this->tipoPagoRepository->fetchByDescripcion('carta de resguardo');
|
||||
} catch (EmptyResult $exception) {
|
||||
|
||||
Reference in New Issue
Block a user