Capitalized Income - Adjustment Transaction

This commit is contained in:
Jose Alberto Hernandez
2025-05-25 10:26:27 -05:00
parent cc2b1d459f
commit 8fe04b08a3
@@ -65,7 +65,6 @@ export class MakeRepaymentComponent implements OnInit {
if (this.dataObject.currency) { if (this.dataObject.currency) {
this.currency = this.dataObject.currency; this.currency = this.dataObject.currency;
} }
this.command = this.dataObject.type.code.split('.')[1];
} }
/** /**
@@ -82,12 +81,22 @@ export class MakeRepaymentComponent implements OnInit {
note: '' note: ''
}); });
this.repaymentLoanForm.addControl( if (this.isCapitalizedIncome()) {
'transactionAmount', this.repaymentLoanForm.addControl(
new UntypedFormControl('', [ 'transactionAmount',
Validators.required, new UntypedFormControl('', [
Validators.min(0.001)]) Validators.required,
); Validators.min(0.001),
Validators.max(this.dataObject.amount)])
);
} else {
this.repaymentLoanForm.addControl(
'transactionAmount',
new UntypedFormControl('', [
Validators.required,
Validators.min(0.001)])
);
}
} }
setRepaymentLoanDetails() { setRepaymentLoanDetails() {