WEB-290: Introduce classification field on loan BuyDown Fee transaction (#2618)
Co-authored-by: Jose Alberto Hernandez <alberto@black-box.local> Merging based on review from Adam and Rustam.
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@
|
|||||||
<input matInput formControlName="externalId" />
|
<input matInput formControlName="externalId" />
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field *ngIf="isCapitalizedIncome()">
|
<mat-form-field *ngIf="isCapitalizedIncome() || isBuyDownFee()">
|
||||||
<mat-label>{{ 'labels.inputs.Classification' | translate }}</mat-label>
|
<mat-label>{{ 'labels.inputs.Classification' | translate }}</mat-label>
|
||||||
<mat-select formControlName="classificationId">
|
<mat-select formControlName="classificationId">
|
||||||
<mat-option *ngFor="let classificationOption of classificationOptions" [value]="classificationOption.id">
|
<mat-option *ngFor="let classificationOption of classificationOptions" [value]="classificationOption.id">
|
||||||
|
|||||||
+3
-1
@@ -104,7 +104,6 @@ export class MakeRepaymentComponent implements OnInit {
|
|||||||
Validators.min(0.001),
|
Validators.min(0.001),
|
||||||
Validators.max(this.dataObject.amount)])
|
Validators.max(this.dataObject.amount)])
|
||||||
);
|
);
|
||||||
this.repaymentLoanForm.addControl('classificationId', new UntypedFormControl(''));
|
|
||||||
} else {
|
} else {
|
||||||
this.repaymentLoanForm.addControl(
|
this.repaymentLoanForm.addControl(
|
||||||
'transactionAmount',
|
'transactionAmount',
|
||||||
@@ -113,6 +112,9 @@ export class MakeRepaymentComponent implements OnInit {
|
|||||||
Validators.min(0.001)])
|
Validators.min(0.001)])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (this.isCapitalizedIncome() || this.isBuyDownFee()) {
|
||||||
|
this.repaymentLoanForm.addControl('classificationId', new UntypedFormControl(''));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setRepaymentLoanDetails() {
|
setRepaymentLoanDetails() {
|
||||||
|
|||||||
@@ -263,6 +263,7 @@ export class TransactionsTabComponent implements OnInit {
|
|||||||
29,
|
29,
|
||||||
30,
|
30,
|
||||||
31,
|
31,
|
||||||
|
32,
|
||||||
33,
|
33,
|
||||||
35,
|
35,
|
||||||
37,
|
37,
|
||||||
|
|||||||
+1
-1
@@ -86,7 +86,7 @@
|
|||||||
{{ 'Classification' | translateKey: 'catalogs' }}
|
{{ 'Classification' | translateKey: 'catalogs' }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex-50" *ngIf="transactionData.classification">
|
<div class="flex-50 wrap-content" *ngIf="transactionData.classification">
|
||||||
{{ transactionData.classification.name }}
|
{{ transactionData.classification.name }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
><fa-icon icon="eye" size="sm" [title]="externalId"></fa-icon
|
><fa-icon icon="eye" size="sm" [title]="externalId"></fa-icon
|
||||||
></span>
|
></span>
|
||||||
<span class="m-l-5" *ngIf="!completed" (click)="showValue()">{{ externalId | externalIdentifier }}</span>
|
<span class="m-l-5" *ngIf="!completed" (click)="showValue()">{{ externalId | externalIdentifier }}</span>
|
||||||
<span class="m-l-5" *ngIf="completed" (click)="showValue()">{{ externalId }}</span>
|
<span *ngIf="completed" (click)="showValue()">{{ externalId }}</span>
|
||||||
<span class="m-l-5" *ngIf="displayR && !completed && iconVisible && isLongValue()" (click)="showValue()"
|
<span class="m-l-5" *ngIf="displayR && !completed && iconVisible && isLongValue()" (click)="showValue()"
|
||||||
><fa-icon icon="eye" size="sm" [title]="externalId"></fa-icon
|
><fa-icon icon="eye" size="sm" [title]="externalId"></fa-icon
|
||||||
></span>
|
></span>
|
||||||
|
|||||||
@@ -250,3 +250,8 @@ body {
|
|||||||
.label-field {
|
.label-field {
|
||||||
margin-top: 32px;
|
margin-top: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wrap-content {
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user