77-->
88
99< div class ="container ">
10- < h3 > {{ 'labels.heading.Loan Delinquency Tags' | translate }}</ h3 >
10+ @if (loanProductService.isLoanProduct) {
11+ < h3 > {{ 'labels.heading.Loan Delinquency Tags' | translate }}</ h3 >
1112
12- @if (loanDelinquencyTags.length > 0) {
13- < table mat-table [dataSource] ="loanDelinquencyTags ">
14- < ng-container matColumnDef ="classification ">
15- < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Delinquency Classification' | translate }}</ th >
16- < td mat-cell *matCellDef ="let item ">
17- {{ item.delinquencyRange.classification }}
18- @if (item.delinquencyRange.maximumAgeDays) {
19- < span > ( {{ item.delinquencyRange.minimumAgeDays }} - {{ item.delinquencyRange.maximumAgeDays }} )</ span >
20- }
21- @if (!item.delinquencyRange.maximumAgeDays) {
22- < span > ( {{ item.delinquencyRange.minimumAgeDays }} )</ span >
23- }
24- </ td >
25- </ ng-container >
26- < ng-container matColumnDef ="addedOn ">
27- < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Added On' | translate }}</ th >
28- < td mat-cell *matCellDef ="let item ">
29- @if (item.addedOnDate) {
30- < span >
31- {{ item.addedOnDate | dateFormat }}
32- </ span >
33- }
34- </ td >
35- </ ng-container >
36- < ng-container matColumnDef ="liftedOn ">
37- < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Lifted On' | translate }}</ th >
38- < td mat-cell *matCellDef ="let item ">
39- @if (item.liftedOnDate) {
40- < span >
41- {{ item.liftedOnDate | dateFormat }}
42- </ span >
43- }
44- </ td >
45- </ ng-container >
46- < tr mat-header-row *matHeaderRowDef ="loanDelinquencyTagsColumns "> </ tr >
47- < tr mat-row *matRowDef ="let row; columns: loanDelinquencyTagsColumns "> </ tr >
48- </ table >
49- }
50-
51- @if (installmentLevelDelinquency.length > 0) {
52- < div >
53- < h3 > {{ 'labels.heading.Loan Delinquency Installment Tags' | translate }}</ h3 >
54- < table mat-table [dataSource] ="installmentLevelDelinquency ">
13+ @if (loanDelinquencyTags.length > 0) {
14+ < table mat-table [dataSource] ="loanDelinquencyTags ">
5515 < ng-container matColumnDef ="classification ">
5616 < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Delinquency Classification' | translate }}</ th >
57- < td mat-cell *matCellDef ="let item "> {{ item.classification }}</ td >
17+ < td mat-cell *matCellDef ="let item ">
18+ {{ item.delinquencyRange.classification }}
19+ @if (item.delinquencyRange.maximumAgeDays) {
20+ < span > ( {{ item.delinquencyRange.minimumAgeDays }} - {{ item.delinquencyRange.maximumAgeDays }} )</ span >
21+ }
22+ @if (!item.delinquencyRange.maximumAgeDays) {
23+ < span > ( {{ item.delinquencyRange.minimumAgeDays }} )</ span >
24+ }
25+ </ td >
5826 </ ng-container >
59- < ng-container matColumnDef ="minimumAgeDays ">
60- < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Days' | translate }}</ th >
61- < td mat-cell *matCellDef ="let item "> {{ item.minimumAgeDays | formatNumber }}</ td >
27+ < ng-container matColumnDef ="addedOn ">
28+ < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Added On' | translate }}</ th >
29+ < td mat-cell *matCellDef ="let item ">
30+ @if (item.addedOnDate) {
31+ < span >
32+ {{ item.addedOnDate | dateFormat }}
33+ </ span >
34+ }
35+ </ td >
6236 </ ng-container >
63- < ng-container matColumnDef ="amount ">
64- < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Amount ' | translate }}</ th >
37+ < ng-container matColumnDef ="liftedOn ">
38+ < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Lifted On ' | translate }}</ th >
6539 < td mat-cell *matCellDef ="let item ">
66- {{ item.delinquentAmount | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
40+ @if (item.liftedOnDate) {
41+ < span >
42+ {{ item.liftedOnDate | dateFormat }}
43+ </ span >
44+ }
6745 </ td >
6846 </ ng-container >
69- < tr mat-header-row *matHeaderRowDef ="installmentDelinquencyTagsColumns "> </ tr >
70- < tr mat-row *matRowDef ="let row; columns: installmentDelinquencyTagsColumns "> </ tr >
47+ < tr mat-header-row *matHeaderRowDef ="loanDelinquencyTagsColumns "> </ tr >
48+ < tr mat-row *matRowDef ="let row; columns: loanDelinquencyTagsColumns "> </ tr >
7149 </ table >
72- </ div >
50+ }
51+
52+ @if (installmentLevelDelinquency.length > 0) {
53+ < div >
54+ < h3 > {{ 'labels.heading.Loan Delinquency Installment Tags' | translate }}</ h3 >
55+ < table mat-table [dataSource] ="installmentLevelDelinquency ">
56+ < ng-container matColumnDef ="classification ">
57+ < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Delinquency Classification' | translate }}</ th >
58+ < td mat-cell *matCellDef ="let item "> {{ item.classification }}</ td >
59+ </ ng-container >
60+ < ng-container matColumnDef ="minimumAgeDays ">
61+ < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Days' | translate }}</ th >
62+ < td mat-cell *matCellDef ="let item "> {{ item.minimumAgeDays | formatNumber }}</ td >
63+ </ ng-container >
64+ < ng-container matColumnDef ="amount ">
65+ < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Amount' | translate }}</ th >
66+ < td mat-cell *matCellDef ="let item ">
67+ {{ item.delinquentAmount | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
68+ </ td >
69+ </ ng-container >
70+ < tr mat-header-row *matHeaderRowDef ="installmentDelinquencyTagsColumns "> </ tr >
71+ < tr mat-row *matRowDef ="let row; columns: installmentDelinquencyTagsColumns "> </ tr >
72+ </ table >
73+ </ div >
74+ }
7375 }
7476
75- @if (allowPause) {
76- < div class =" layout-row m-t-20 m-b-10 align-end align-items-center " >
77+ < div class =" layout-row m-t-20 m-b-10 align-end align-items-center gap-5px " >
78+ @if (allowPause) {
7779 < button
7880 mat-raised-button
7981 color ="primary "
@@ -83,8 +85,18 @@ <h3>{{ 'labels.heading.Loan Delinquency Installment Tags' | translate }}</h3>
8385 < fa-icon icon ="pause " class ="m-r-10 "> </ fa-icon
8486 > {{ 'labels.buttons.Pause Delinquency Classification' | translate }}
8587 </ button >
86- </ div >
87- }
88+ }
89+ @if (loanProductService.isWorkingCapital) {
90+ < button
91+ mat-raised-button
92+ color ="primary "
93+ (click) ="createDelinquencyActionReschedule() "
94+ *mifosxHasPermission ="'CREATE_WC_DELINQUENCY_ACTION' "
95+ >
96+ < fa-icon icon ="calendar " class ="m-r-10 "> </ fa-icon > {{ 'labels.buttons.Reschedule' | translate }}
97+ </ button >
98+ }
99+ </ div >
88100
89101 @if (loanDelinquencyActions.length > 0) {
90102 < div class ="m-t-10 ">
@@ -109,7 +121,7 @@ <h3>{{ 'labels.heading.Loan Delinquency Actions' | translate }}</h3>
109121 < ng-container matColumnDef ="actions ">
110122 < th mat-header-cell *matHeaderCellDef > {{ 'labels.inputs.Actions' | translate }}</ th >
111123 < td mat-cell *matCellDef ="let item ">
112- @if (isCurrentAndPauseAction(item)) {
124+ @if (loanProductService.isLoanProduct && isCurrentAndPauseAction(item)) {
113125 < span >
114126 < button
115127 mat-button
0 commit comments