WEB-290: Introduce classification field on loan transactions

This commit is contained in:
Jose Alberto Hernandez
2025-08-25 08:32:34 -05:00
parent 464d60921b
commit c67fca5f90
3 changed files with 21 additions and 0 deletions
@@ -47,6 +47,8 @@ export class MakeRepaymentComponent implements OnInit {
command: string | null = null;
classificationOptions: any[] = [];
/**
* @param {FormBuilder} formBuilder Form Builder.
* @param {LoansService} loanService Loan Service.
@@ -102,6 +104,7 @@ export class MakeRepaymentComponent implements OnInit {
Validators.min(0.001),
Validators.max(this.dataObject.amount)])
);
this.repaymentLoanForm.addControl('classificationId', new UntypedFormControl(''));
} else {
this.repaymentLoanForm.addControl(
'transactionAmount',
@@ -114,6 +117,7 @@ export class MakeRepaymentComponent implements OnInit {
setRepaymentLoanDetails() {
this.paymentTypes = this.dataObject.paymentTypeOptions;
this.classificationOptions = this.dataObject.classificationOptions;
this.repaymentLoanForm.patchValue({
transactionAmount: this.dataObject.amount
});