Chore: Updated to Angular 16

This commit is contained in:
2023-07-23 09:01:18 +05:30
parent 9589081046
commit 78d98f979d
99 changed files with 416 additions and 232 deletions

View File

@ -11,7 +11,11 @@ import { LedgerItem } from './ledger-item';
const compare = (a: string | number, b: string | number, isAsc: boolean) =>
(a < b ? -1 : 1) * (isAsc ? 1 : -1);
export class LedgerDataSource extends DataSource<LedgerItem> {
constructor(public data: LedgerItem[], private paginator?: MatPaginator, private sort?: MatSort) {
constructor(
public data: LedgerItem[],
private paginator?: MatPaginator,
private sort?: MatSort,
) {
super();
}

View File

@ -97,10 +97,10 @@
<ng-container matColumnDef="debit">
<mat-header-cell *matHeaderCellDef mat-sort-header class="right">Debit</mat-header-cell>
<mat-cell *matCellDef="let row" class="right">{{
row.debit | currency : 'INR' | clear
row.debit | currency: 'INR' | clear
}}</mat-cell>
<mat-footer-cell *matFooterCellDef class="right">{{
debit | currency : 'INR'
debit | currency: 'INR'
}}</mat-footer-cell>
</ng-container>
@ -108,10 +108,10 @@
<ng-container matColumnDef="credit">
<mat-header-cell *matHeaderCellDef mat-sort-header class="right">Credit</mat-header-cell>
<mat-cell *matCellDef="let row" class="right">{{
row.credit | currency : 'INR' | clear
row.credit | currency: 'INR' | clear
}}</mat-cell>
<mat-footer-cell *matFooterCellDef class="right">{{
credit | currency : 'INR'
credit | currency: 'INR'
}}</mat-footer-cell>
</ng-container>
@ -119,10 +119,10 @@
<ng-container matColumnDef="running">
<mat-header-cell *matHeaderCellDef mat-sort-header class="right">Running</mat-header-cell>
<mat-cell *matCellDef="let row" class="right">{{
row.running | currency : 'INR' | accounting
row.running | currency: 'INR' | accounting
}}</mat-cell>
<mat-footer-cell *matFooterCellDef class="right">{{
running | currency : 'INR' | accounting
running | currency: 'INR' | accounting
}}</mat-footer-cell>
</ng-container>

View File

@ -14,7 +14,10 @@ const serviceName = 'LedgerService';
providedIn: 'root',
})
export class LedgerService {
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
constructor(
private http: HttpClient,
private log: ErrorLoggerService,
) {}
list(id: string | null, startDate: string | null, finishDate: string | null): Observable<Ledger> {
const listUrl = id === null ? url : `${url}/${id}`;