35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<mat-card>
|
|
<mat-card-title-group>
|
|
<mat-card-title>BatchReport</mat-card-title>
|
|
</mat-card-title-group>
|
|
<mat-card-content>
|
|
<mat-table [dataSource]="dataSource" aria-label="Elements">
|
|
<!-- Batch Column -->
|
|
<ng-container matColumnDef="batch">
|
|
<mat-header-cell *matHeaderCellDef>Batch</mat-header-cell>
|
|
<mat-cell *matCellDef="let row">
|
|
{{ row.product }} dated {{ row.date }} @ {{ row.price | currency: 'INR' }} is showing
|
|
{{ row.showing }} instead of {{ row.actual }}
|
|
</mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Details Column -->
|
|
<ng-container matColumnDef="details">
|
|
<mat-header-cell *matHeaderCellDef>Details</mat-header-cell>
|
|
<mat-cell *matCellDef="let row">
|
|
<ul>
|
|
<li *ngFor="let detail of row.details">
|
|
<a [routerLink]="detail.url">{{ detail.type }}</a> on {{ detail.date }} of
|
|
{{ detail.quantity }} @
|
|
{{ detail.price | currency: 'INR' }}
|
|
</li>
|
|
</ul>
|
|
</mat-cell>
|
|
</ng-container>
|
|
|
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
|
<mat-row *matRowDef="let row; columns: displayedColumns"></mat-row>
|
|
</mat-table>
|
|
</mat-card-content>
|
|
</mat-card>
|