Remove the field recalculationCompountFrequenceyDate from loan product request

This commit is contained in:
Jose Alberto Hernandez
2022-07-18 21:59:54 -05:00
parent 4a40b5eca7
commit 2ee81f2f90
8 changed files with 4 additions and 44 deletions
@@ -148,14 +148,6 @@ export class CreateLoansAccountComponent implements OnInit {
loansAccountData.recalculationRestFrequencyDate = this.dateUtils.formatDate(this.loansAccount.recalculationRestFrequencyDate, dateFormat);
}
if (this.loansAccountProductTemplate.isInterestRecalculationEnabled) {
if (loansAccountData.recalculationCompoundingFrequencyDate !== null) {
loansAccountData.recalculationCompoundingFrequencyDate = this.dateUtils.formatDate(this.loansAccount.recalculationCompoundingFrequencyDate, dateFormat);
}
} else {
delete loansAccountData.recalculationCompoundingFrequencyDate;
}
if (loansAccountData.interestCalculationPeriodType === 0) {
loansAccountData.allowPartialPeriodInterestCalcualtion = false;
}