Skip to content

Commit

Permalink
SU-488 : Archivo de Cartera - Departamento
Browse files Browse the repository at this point in the history
  • Loading branch information
tabrez-fiter committed Dec 12, 2024
1 parent c3a4ff0 commit 324a856
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,14 @@ public RepeatStatus execute(StepContribution contribution, ChunkContext chunkCon
}
}

String cuoEstado = dataLoan.getCuoEstado();
if (cuoEstado == null || cuoEstado.equals("CASTIGO")) {
cuoEstado = loan.getStatus().name();
}
String estadoCuota = loan.getStatus().name();
String cuoEstado = estadoCuota;

String estadoCliente = dataLoan.getEstadoCliente();
if (estadoCliente == null || estadoCliente.equals("CASTIGO")) {
estadoCliente = ClientStatus.fromInt(loan.getClient().getStatus()).name();
}

if (existingLoanArchive.isPresent()) {

LoanArchiveHistory existingEntry = existingLoanArchive.get();
Expand Down Expand Up @@ -301,7 +300,7 @@ public RepeatStatus execute(StepContribution contribution, ChunkContext chunkCon
existingEntry.setEmpresa(ally);
existingEntry.setMarca(brand);
existingEntry.setCiudadPuntoCredito(cityPoinfsales);
existingEntry.setEstadoCuota(dataLoan.getEstadoCuota());
existingEntry.setEstadoCuota(estadoCuota);
existingEntry.setIvaInteresDeMora(BigDecimal.ZERO);
existingEntry.setFechaFinanciacion(loan.getDisbursementDate());
existingEntry.setPuntoDeVenta(pointOfSale);
Expand Down Expand Up @@ -365,7 +364,7 @@ public RepeatStatus execute(StepContribution contribution, ChunkContext chunkCon
loanArchiveHistory.setEmpresa(ally);
loanArchiveHistory.setMarca(brand);
loanArchiveHistory.setCiudadPuntoCredito(cityPoinfsales);
loanArchiveHistory.setEstadoCuota(dataLoan.getEstadoCuota());
loanArchiveHistory.setEstadoCuota(estadoCuota);
loanArchiveHistory.setIvaInteresDeMora(BigDecimal.ZERO);
loanArchiveHistory.setFechaFinanciacion(loan.getDisbursementDate());
loanArchiveHistory.setPuntoDeVenta(pointOfSale);
Expand Down

0 comments on commit 324a856

Please sign in to comment.