Open albertjo opened 3 months ago
@huberttsen It's because end_date
is set to now()
in LoanInstallmentDao.java - is this expected behavior?
jdbi.useHandle(
handle -> {
handle.createUpdate(updateQuery)
.bind("loan_id", loanInstallmentDto.loanId())
.bind("loan_installment_id", loanInstallmentDto.installmentId())
.bind("principal_amount", loanInstallmentDto.principalAmount())
.bind("interest_amount", loanInstallmentDto.interestAmount())
.bind("status", loanInstallmentDto.status().toString())
.bind("end_date", ZonedDateTime.now().toLocalDate())
.execute();
}
);
@albertjo seems like this issue is fixed now. Changes were done in this PR: https://github.com/getcorefin/corefin/pull/33 This issue can be closed
Reproduction steps
It should create a loan with the following installments:
The
startDate
anddueDate
for each installment are correct but theendDate
is incorrect.