Replaced checked in package-lock.json by regenerated one. Ran ng update @angular/core@20 @angular/cli@20 Ran npm install @angular-builders/jest@^20.0.0 @fortawesome/angular-fontawesome@^3.0.0 @swimlane/ngx-graph@^11 Ran npm install ngx-mat-select-search@^8.0.2. Ran ng update @angular/material@20. Updated all eslint and typescript to the latest versions. Removed @angular-devkit/schematics. Updated fontawesome. Updated rxjs and tslib. Moved required node version from 16 to 20. Updated jest-preset-angular. Set preserveWhitespaces to false. Corrected two type declarations in two typescript files to make ng serve run without errors. Removed unused angular-devkit/schematics from view-user.component.ts . Updated list of supported browsers. Upgraded prettier. Ran prettier . --write the first time. Ran prettier . --write the second time. Ran ng generate @angular/core:inject with defaults, excepted a handful of files. Fixed remaining eslint problems. Added dist directory to ignores in eslint.config.js. Let prettier fix formatting, almost everything is just line breaks. Made htmlhint ignore @if and @for Angular constructs. Updated node version in Github workflow to 22.12.0 (build.yml). Updated .env.ts. Updated Angular datetime format strings from YYYY-MM-DD to yyyy-MM-dd. Merged changes from dev into angular20 branch.
128 lines
5.1 KiB
HTML
128 lines
5.1 KiB
HTML
<div class="layout-row align-end gap-2px responsive-column container m-b-20">
|
|
<button mat-raised-button color="primary" [routerLink]="['pay']" *mifosxHasPermission="'PAY_CLIENTCHARGE'">
|
|
<fa-icon icon="dollar-sign" class="m-r-10"></fa-icon>
|
|
{{ 'labels.buttons.Pay' | translate }}
|
|
</button>
|
|
<button mat-raised-button color="primary" (click)="waiveCharge()" *mifosxHasPermission="'WAIVE_CLIENTCHARGE'">
|
|
<i class="fa fa-flag"></i>
|
|
{{ 'labels.buttons.Waive Charge' | translate }}
|
|
</button>
|
|
<button mat-raised-button color="primary" (click)="deleteCharge()">
|
|
<fa-icon icon="trash" class="m-r-10"></fa-icon>
|
|
{{ 'labels.buttons.Delete' | translate }}
|
|
</button>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<mat-card>
|
|
<mat-card-title>
|
|
<i class="fa fa-stop" [ngClass]="!(chargeData.isWaived || chargeData.isPaid) | statusLookup"></i>
|
|
{{ chargeData.name }}
|
|
</mat-card-title>
|
|
|
|
<mat-divider></mat-divider>
|
|
|
|
<mat-card-content>
|
|
<div class="share-account-tables p-t-20 layout-row-wrap flex-50">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>{{ 'labels.inputs.Currency' | translate }}</td>
|
|
<td>{{ chargeData.currency.name }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{ 'labels.inputs.Charge Time Type' | translate }}</td>
|
|
<td>{{ chargeData.chargeTimeType.value }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{ 'labels.inputs.Charge Calculation Type' | translate }}</td>
|
|
<td>{{ chargeData.chargeCalculationType.value }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{ 'labels.inputs.Due as of' | translate }}</td>
|
|
<td>{{ chargeData.dueDate | dateFormat }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{ 'labels.inputs.Due' | translate }}</td>
|
|
<td>{{ chargeData.amount }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{ 'labels.inputs.Paid' | translate }}</td>
|
|
<td>{{ chargeData.amountPaid }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{ 'labels.inputs.Waived' | translate }}</td>
|
|
<td>{{ chargeData.amountWaived }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ 'labels.inputs.Outstanding' | translate }}</td>
|
|
<td>{{ chargeData.amountOutstanding }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</mat-card-content>
|
|
|
|
<div class="layout-row-wrap">
|
|
<h1>
|
|
<b> {{ 'labels.heading.Transactions' | translate }} </b>
|
|
</h1>
|
|
|
|
@if (chargeData.clientTransactionDatas) {
|
|
<table mat-table [dataSource]="chargeData.clientTransactionDatas">
|
|
<ng-container matColumnDef="id">
|
|
<th mat-header-cell *matHeaderCellDef>{{ 'labels.inputs.ID' | translate }}</th>
|
|
<td mat-cell *matCellDef="let element" [ngClass]="{ strikeoff: element.reversed }">{{ element.id }}</td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="officeName">
|
|
<th mat-header-cell *matHeaderCellDef>{{ 'labels.inputs.Office Name' | translate }}</th>
|
|
<td mat-cell *matCellDef="let element" [ngClass]="{ strikeoff: element.reversed }">
|
|
{{ element.officeName }}
|
|
</td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="type">
|
|
<th mat-header-cell *matHeaderCellDef>{{ 'labels.inputs.Type' | translate }}</th>
|
|
<td mat-cell *matCellDef="let element" [ngClass]="{ strikeoff: element.reversed }">
|
|
{{ element.type.value }}
|
|
</td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="transactionDate">
|
|
<th mat-header-cell *matHeaderCellDef>{{ 'labels.inputs.Transaction Date' | translate }}</th>
|
|
<td mat-cell *matCellDef="let element" [ngClass]="{ strikeoff: element.reversed }">
|
|
{{ element.date | dateFormat }}
|
|
</td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="amount">
|
|
<th mat-header-cell *matHeaderCellDef>{{ 'labels.inputs.Amount' | translate }}</th>
|
|
<td mat-cell *matCellDef="let element" [ngClass]="{ strikeoff: element.reversed }">
|
|
{{ element.amount | formatNumber }}
|
|
</td>
|
|
</ng-container>
|
|
<ng-container matColumnDef="actions">
|
|
<th mat-header-cell *matHeaderCellDef>{{ 'labels.inputs.Actions' | translate }}</th>
|
|
<td mat-cell *matCellDef="let element" [ngClass]="{ strikeoff: element.reversed }">
|
|
<button mat-raised-button color="primary" (click)="undoTransaction(element.id)" class="del-btn">
|
|
<fa-icon icon="trash" class="m-r-10"></fa-icon>
|
|
</button>
|
|
</td>
|
|
</ng-container>
|
|
<tr mat-header-row *matHeaderRowDef="viewChargeTableColumns"></tr>
|
|
<tr mat-row *matRowDef="let row; columns: viewChargeTableColumns"></tr>
|
|
</table>
|
|
}
|
|
</div>
|
|
|
|
<mat-card-actions class="layout-row align-center gap-5px responsive-column">
|
|
<button type="button" mat-raised-button [routerLink]="['../../', 'general']">
|
|
{{ 'labels.buttons.Back' | translate }}
|
|
</button>
|
|
</mat-card-actions>
|
|
</mat-card>
|
|
</div>
|