Merge branch 'FINERACT-182' into develop
This commit is contained in:
+9
-2
@@ -972,9 +972,16 @@ public class Loan extends AbstractPersistable<Long> {
|
||||
}
|
||||
|
||||
LocalDate transactionDate = getDisbursementDate();
|
||||
if (loanCharge.isSpecifiedDueDate()) {
|
||||
transactionDate = loanCharge.getDueLocalDate();
|
||||
if (loanCharge.isDueDateCharge()) {
|
||||
if (loanCharge.getDueLocalDate().isAfter(DateUtils.getLocalDateOfTenant())) {
|
||||
transactionDate = DateUtils.getLocalDateOfTenant();
|
||||
} else {
|
||||
transactionDate = loanCharge.getDueLocalDate();
|
||||
}
|
||||
}else if(loanCharge.isInstalmentFee()){
|
||||
transactionDate = loanCharge.getInstallmentLoanCharge(loanInstallmentNumber).getRepaymentInstallment().getDueDate();
|
||||
}
|
||||
|
||||
scheduleGeneratorDTO.setRecalculateFrom(transactionDate);
|
||||
|
||||
updateSummaryWithTotalFeeChargesDueAtDisbursement(deriveSumTotalOfChargesDueAtDisbursement());
|
||||
|
||||
+4
@@ -987,4 +987,8 @@ public class LoanCharge extends AbstractPersistable<Long> {
|
||||
public boolean isTrancheDisbursementCharge() {
|
||||
return ChargeTimeType.fromInt(this.chargeTime).equals(ChargeTimeType.TRANCHE_DISBURSEMENT);
|
||||
}
|
||||
|
||||
public boolean isDueDateCharge() {
|
||||
return this.dueDate != null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user