FINERACT-1724-Duplicate-repayment-schedule-on-second-disbursement
This commit is contained in:
committed by
Adam Saghy
parent
0a9657b774
commit
d40c023a0d
+3
-1
@@ -876,7 +876,9 @@ public class LoanTransaction extends AbstractAuditableWithUTCDateTimeCustom {
|
||||
for (LoanTransactionToRepaymentScheduleMapping repaymentScheduleMapping : this.loanTransactionToRepaymentScheduleMappings) {
|
||||
if (updatedrepaymentScheduleMapping.getLoanRepaymentScheduleInstallment().getId() != null
|
||||
&& repaymentScheduleMapping.getLoanRepaymentScheduleInstallment().getDueDate()
|
||||
.equals(updatedrepaymentScheduleMapping.getLoanRepaymentScheduleInstallment().getDueDate())) {
|
||||
.equals(updatedrepaymentScheduleMapping.getLoanRepaymentScheduleInstallment().getDueDate())
|
||||
&& updatedrepaymentScheduleMapping.getLoanRepaymentScheduleInstallment().getId()
|
||||
.equals(repaymentScheduleMapping.getLoanRepaymentScheduleInstallment().getId())) {
|
||||
repaymentScheduleMapping.setComponents(updatedrepaymentScheduleMapping.getPrincipalPortion(),
|
||||
updatedrepaymentScheduleMapping.getInterestPortion(), updatedrepaymentScheduleMapping.getFeeChargesPortion(),
|
||||
updatedrepaymentScheduleMapping.getPenaltyChargesPortion());
|
||||
|
||||
Reference in New Issue
Block a user