Fix Loan product edition Loan Schedule Processing Type issue

This commit is contained in:
Jose Alberto Hernandez
2024-01-04 10:12:14 +01:00
committed by Adam Saghy
parent 0ca7d80df9
commit f6261be8d5
@@ -406,7 +406,7 @@ export class LoanProductSettingsStepComponent implements OnInit {
this.isAdvancedTransactionProcessingStrategy = LoanProducts.isAdvancedPaymentAllocationStrategy(transactionProcessingStrategyCode);
if (this.isAdvancedTransactionProcessingStrategy) {
this.loanProductSettingsForm.addControl('loanScheduleProcessingType', new UntypedFormControl(
LoanProducts.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL, [Validators.required]));
this.loanProductsTemplate.loanScheduleProcessingType.code || LoanProducts.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL, [Validators.required]));
} else {
this.loanProductSettingsForm.removeControl('loanScheduleProcessingType');
}