Profit & Loss Done!!

This commit is contained in:
tanshu
2020-05-14 13:49:40 +05:30
parent 48d03ab832
commit e62bb0a825
3 changed files with 58 additions and 16 deletions

View File

@ -27,14 +27,14 @@
<ng-container matColumnDef="group">
<mat-header-cell *matHeaderCellDef mat-sort-header>Group</mat-header-cell>
<mat-cell *matCellDef="let row">{{row.group}}</mat-cell>
<mat-footer-cell *matFooterCellDef>{{info.footer.group}}</mat-footer-cell>
<mat-footer-cell *matFooterCellDef>{{info.footer?.group}}</mat-footer-cell>
</ng-container>
<!-- Name Column -->
<ng-container matColumnDef="name">
<mat-header-cell *matHeaderCellDef mat-sort-header>Name</mat-header-cell>
<mat-cell *matCellDef="let row">{{row.name}}</mat-cell>
<mat-footer-cell *matFooterCellDef>{{info.footer.name}}</mat-footer-cell>
<mat-footer-cell *matFooterCellDef>{{info.footer?.name}}</mat-footer-cell>
</ng-container>
<!-- Amount Column -->
@ -42,7 +42,7 @@
<mat-header-cell *matHeaderCellDef mat-sort-header class="right">Amount</mat-header-cell>
<mat-cell *matCellDef="let row" class="right">{{row.amount | currency:'INR'}}</mat-cell>
<mat-footer-cell *matFooterCellDef class="right">
{{info.footer.amount | currency:'INR'}}
{{info.footer?.amount | currency:'INR'}}
</mat-footer-cell>
</ng-container>
@ -51,7 +51,7 @@
<mat-header-cell *matHeaderCellDef mat-sort-header class="right">Total</mat-header-cell>
<mat-cell *matCellDef="let row" class="right">{{row.total | currency:'INR'}}</mat-cell>
<mat-footer-cell *matFooterCellDef class="right">
{{info.footer.total | currency:'INR'}}
{{info.footer?.total | currency:'INR'}}
</mat-footer-cell>
</ng-container>