Skip to content

Commit 72fab61

Browse files
WEB-657: Working Capital loan account details enriched
1 parent 42c0ef3 commit 72fab61

3 files changed

Lines changed: 45 additions & 9 deletions

File tree

src/app/loans/loans-view/account-details/account-details.component.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,17 @@ <h3>{{ 'labels.heading.Loan Details' | translate }}</h3>
1616
<span class="flex-50">{{ loanDetails.transactionProcessingStrategyName | translateKey: 'catalogs' }}</span>
1717
</div>
1818
}
19+
<div class="flex-fill layout-row">
20+
<span class="flex-50">{{ 'labels.inputs.Currency' | translate }}</span>
21+
<span class="flex-50">{{ loanDetails.currency.code }}</span>
22+
</div>
1923

2024
@if (loanProductService.isWorkingCapital) {
25+
<div class="flex-fill layout-row">
26+
<span class="flex-50"> {{ 'labels.inputs.Amortization Type' | translate }} </span>
27+
<span class="flex-50"> {{ loanDetails.product.amortizationType.value | translateKey: 'catalogs' }} </span>
28+
</div>
29+
2130
<div class="flex-fill layout-row">
2231
<span class="flex-50">{{ 'labels.inputs.Period Payment Frequency' | translate }}</span>
2332
<span class="flex-50">

src/app/loans/loans-view/loans-view.component.html

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
</tbody>
8181
</table>
8282
</div>
83-
@if (loanDisplayArrearsDelinquency !== 1) {
83+
@if (loanProductService.isLoanProduct && loanDisplayArrearsDelinquency !== 1) {
8484
<div>
8585
<table class="account-overview">
8686
<tbody>
@@ -113,6 +113,27 @@
113113
</table>
114114
</div>
115115
}
116+
@if (loanProductService.isWorkingCapital && loanDetailsData?.delinquencyBucket) {
117+
<div>
118+
<table class="account-overview">
119+
<tbody>
120+
<tr>
121+
<td>{{ 'labels.inputs.Delinquency Classification' | translate }} :</td>
122+
<td>
123+
<span class="m-r-3"><i [ngClass]="loanDelinquencyClassificationStyle"></i></span>
124+
{{ loanDetailsData?.delinquencyBucket.name }}
125+
</td>
126+
</tr>
127+
@if (loanDetailsData.collectionData && loanDetailsData.collectionData.delinquentDays > 0) {
128+
<tr>
129+
<td>{{ 'labels.inputs.Delinquent Days' | translate }} :</td>
130+
<td>{{ loanDetailsData?.collectionData.delinquentDays | formatNumber }}</td>
131+
</tr>
132+
}
133+
</tbody>
134+
</table>
135+
</div>
136+
}
116137
</div>
117138

118139
@if (loanDetailsData.summary) {

src/app/loans/loans-view/loans-view.component.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -524,14 +524,20 @@ export class LoansViewComponent extends LoanProductBaseComponent implements OnIn
524524
if (!this.loanDetailsData) {
525525
return '';
526526
}
527-
if (this.loanDetailsData.chargedOff) {
528-
return 'loanStatusType.chargeoff';
529-
}
530-
if (this.isContractTermination(this.loanSubStatus)) {
531-
return 'loanSubStatusType.contractTermination';
532-
}
533-
if (this.loanDetailsData.inArrears) {
534-
return 'loanStatusType.activeOverdue';
527+
if (this.loanProductService.isLoanProduct) {
528+
if (this.loanDetailsData.chargedOff) {
529+
return 'loanStatusType.chargeoff';
530+
}
531+
if (this.isContractTermination(this.loanSubStatus)) {
532+
return 'loanSubStatusType.contractTermination';
533+
}
534+
if (this.loanDetailsData.inArrears) {
535+
return 'loanStatusType.activeOverdue';
536+
}
537+
} else if (this.loanProductService.isWorkingCapital) {
538+
if (this.loanDetailsData.collectionData?.delinquentDays > 0) {
539+
return 'loanStatusType.activeOverdue';
540+
}
535541
}
536542
return this.loanDetailsData.status?.code;
537543
}

0 commit comments

Comments
 (0)