feat: add loan action button (#874)

- add prepay loan action
- add repayment loan action

Fixes: #243
Fixes: #242
This commit is contained in:
Muskan Khedia
2020-06-13 17:54:26 +05:30
committed by GitHub
parent da609f0de4
commit 06fd5e793c
17 changed files with 504 additions and 32 deletions
@@ -19,41 +19,26 @@
<mat-form-field>
<mat-label>Principal</mat-label>
<input matInput required formControlName="outstandingPrincipalPortion">
<mat-error *ngIf="foreclosureForm.controls.outstandingPrincipalPortion.hasError('required')">
Loan Officer is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>Interest</mat-label>
<input matInput required formControlName="outstandingInterestPortion">
<mat-error *ngIf="foreclosureForm.controls.outstandingInterestPortion.hasError('required')">
Loan Officer is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>Fee Amount</mat-label>
<input matInput required formControlName="outstandingFeeChargesPortion">
<mat-error *ngIf="foreclosureForm.controls.outstandingFeeChargesPortion.hasError('required')">
Loan Officer is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>Penalty Amount</mat-label>
<input matInput required formControlName="outstandingPenaltyChargesPortion">
<mat-error *ngIf="foreclosureForm.controls.outstandingPenaltyChargesPortion.hasError('required')">
Loan Officer is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>Transaction Amount</mat-label>
<input matInput required formControlName="transactionAmount">
<mat-error *ngIf="foreclosureForm.controls.transactionAmount.hasError('required')">
Loan Officer is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
@@ -44,11 +44,11 @@ export class ForeclosureComponent implements OnInit {
createforeclosureForm() {
this.foreclosureForm = this.formBuilder.group({
'transactionDate': [new Date(), Validators.required],
'outstandingPrincipalPortion': [{value: '', disabled: true}, Validators.required],
'outstandingInterestPortion': [{value: '', disabled: true}, Validators.required],
'outstandingFeeChargesPortion': [{value: '', disabled: true}, Validators.required],
'outstandingPenaltyChargesPortion': [{value: '', disabled: true}, Validators.required],
'transactionAmount': [{value: '', disabled: true}, Validators.required],
'outstandingPrincipalPortion': [{value: '', disabled: true}],
'outstandingInterestPortion': [{value: '', disabled: true}],
'outstandingFeeChargesPortion': [{value: '', disabled: true}],
'outstandingPenaltyChargesPortion': [{value: '', disabled: true}],
'transactionAmount': [{value: '', disabled: true}],
'interestAccruedAfterDeath': '',
'note': ''
});