WEB-290: Introduce classification field on loan transactions
This commit is contained in:
+4
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user