Purchases done!!
This commit is contained in:
@ -26,9 +26,9 @@
|
||||
<!-- Product Column -->
|
||||
<ng-container matColumnDef="product">
|
||||
<mat-header-cell *matHeaderCellDef>Product</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row">{{row.name}}</mat-cell>
|
||||
<mat-cell *matCellDef="let row"><a [routerLink]="row.url" [queryParams]="{startDate: info.startDate, finishDate: info.finishDate}">{{row.name}}</a></mat-cell>
|
||||
<mat-footer-cell *matFooterCellDef>
|
||||
{{info.footer.name}}
|
||||
{{info.footer?.name}}
|
||||
</mat-footer-cell>
|
||||
</ng-container>
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
<mat-header-cell *matHeaderCellDef class="right">Quantity</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row" class="right">{{row.quantity | number:'1.2-2'}}</mat-cell>
|
||||
<mat-footer-cell *matFooterCellDef class="right">
|
||||
{{info.footer.quantity | number:'1.2-2'}}
|
||||
{{info.footer?.quantity | number:'1.2-2'}}
|
||||
</mat-footer-cell>
|
||||
</ng-container>
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
<mat-header-cell *matHeaderCellDef class="right">Rate</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row" class="right">{{row.rate | currency:'INR'}}</mat-cell>
|
||||
<mat-footer-cell *matFooterCellDef class="right">
|
||||
{{info.footer.rate | currency:'INR'}}
|
||||
{{info.footer?.rate | currency:'INR'}}
|
||||
</mat-footer-cell>
|
||||
</ng-container>
|
||||
|
||||
@ -55,7 +55,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>
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ export class PurchasesItem {
|
||||
quantity: number;
|
||||
rate: number;
|
||||
amount: number;
|
||||
url: string;
|
||||
url: string[];
|
||||
}
|
||||
|
||||
export class Purchases {
|
||||
|
||||
Reference in New Issue
Block a user