2021-11-05 21:32:01 +00:00
|
|
|
<app-header></app-header>
|
|
|
|
<div align="center">
|
2021-11-11 15:18:38 +00:00
|
|
|
<h3 class="text">{{(ownerUpdate | async)!.name}}</h3>
|
2021-11-05 21:32:01 +00:00
|
|
|
<button class="text" mat-raised-button [routerLink]="['/shop']" color="primary">
|
|
|
|
Back to Shop
|
|
|
|
</button>
|
|
|
|
</div>
|
2022-07-15 02:35:06 +00:00
|
|
|
<table class="totalsTbl" width="100%">
|
|
|
|
<tr class="totalsHdr">
|
|
|
|
<td width="10%"></td>
|
|
|
|
<td width="40%" >
|
|
|
|
<div class="totalsHdrTitle">Today's Total:</div>
|
|
|
|
<div class="totalsHdrDetail">
|
|
|
|
<img src="/assets/zec_rv.png"
|
|
|
|
style="height: 16px !important;
|
2022-07-22 21:08:45 +00:00
|
|
|
margin-bottom: -2px;">{{todayTotal | number: '1.08'}}
|
2022-07-15 02:35:06 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td width="40%" >
|
|
|
|
<div class="totalsHdrTitle">Overall Total:</div>
|
|
|
|
<div class="totalsHdrDetail">
|
|
|
|
<img src="/assets/zec_rv.png"
|
|
|
|
style="height: 16px !important;
|
2022-07-22 21:08:45 +00:00
|
|
|
margin-bottom: -2px;">{{total | number: '1.08'}}
|
2022-07-15 02:35:06 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td width="10%"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="orderList">
|
|
|
|
<mat-accordion *ngIf = "orders.length > 0">
|
|
|
|
<mat-expansion-panel *ngFor = "let order of orders">
|
|
|
|
<mat-expansion-panel-header [collapsedHeight]="'30px'" [expandedHeight]="'30px'" >
|
|
|
|
<mat-panel-title>
|
|
|
|
<div class="orderListTitle">
|
|
|
|
<img src="/assets/zec_rv.png"
|
|
|
|
style="height: 16px;
|
|
|
|
margin-bottom: -2px;"
|
2022-07-22 21:08:45 +00:00
|
|
|
>{{order.totalZec | number: '1.08'}}
|
2022-07-15 02:35:06 +00:00
|
|
|
</div>
|
|
|
|
</mat-panel-title>
|
|
|
|
<mat-panel-description>
|
|
|
|
<table width="100%">
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-08-23 21:22:34 +00:00
|
|
|
<fa-icon *ngIf="payConf"
|
|
|
|
[icon]="getIcon(order)" [style]="getIconStyle(order)" ></fa-icon>
|
2022-07-15 02:35:06 +00:00
|
|
|
</td>
|
|
|
|
<td align="center">
|
2022-08-23 21:22:34 +00:00
|
|
|
{{order.timestamp | date: 'MM/dd/YY, hh:mm a'}}
|
2022-07-15 02:35:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</mat-panel-description>
|
|
|
|
</mat-expansion-panel-header>
|
|
|
|
<div class='orderheader'>
|
|
|
|
<div class="text2"> <b>Order Id</b>: {{order._id}}</div>
|
|
|
|
</div>
|
2022-07-14 18:38:55 +00:00
|
|
|
|
2022-07-15 02:35:06 +00:00
|
|
|
<table style="width: 100%;"
|
|
|
|
cellspacing="0">
|
2022-07-26 15:00:17 +00:00
|
|
|
<tr style="font-family: 'Roboto Mono';
|
2022-07-15 02:35:06 +00:00
|
|
|
font-weight: 700;
|
|
|
|
font-size: 16px;
|
|
|
|
height: 20px;">
|
|
|
|
<td width="50%">Order Total:</td>
|
|
|
|
<td align="right"
|
|
|
|
width="50%">
|
|
|
|
<img class="icon" src="/assets/zec_rv.png"
|
2022-07-22 21:08:45 +00:00
|
|
|
>{{ order.totalZec | number: '1.08'}}
|
2022-07-15 02:35:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2022-07-26 15:00:17 +00:00
|
|
|
<tr style="font-family: 'Roboto Mono';
|
2022-07-15 02:35:06 +00:00
|
|
|
font-size: 15px;
|
|
|
|
font-weight: 400;
|
|
|
|
height: 18px;">
|
|
|
|
<td width="50%">
|
|
|
|
<img class="icon"
|
|
|
|
style="color: lightgray;
|
|
|
|
margin-bottom: -3px;"
|
|
|
|
src="/assets/zec_rv.png"
|
|
|
|
>1.0 = {{ order.price | currency: order.currency.toUpperCase()}}
|
|
|
|
</td>
|
|
|
|
<td width="50%" align="right">
|
2022-07-18 00:46:56 +00:00
|
|
|
{{ order.total | currency: order.currency.toUpperCase()}}
|
2022-07-15 02:35:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2022-07-14 18:38:55 +00:00
|
|
|
|
2022-07-15 02:35:06 +00:00
|
|
|
<table style="width: 100%;">
|
|
|
|
<thead style="width: 100%;">
|
|
|
|
<tr style="background: lightblue;">
|
|
|
|
<th class="tbheader"
|
|
|
|
style="text-align: left;"
|
|
|
|
width="55%">Item
|
|
|
|
</th>
|
|
|
|
<th class="tbheader"
|
|
|
|
style="text-align: left;"
|
|
|
|
width="15%">Qty.
|
|
|
|
</th>
|
|
|
|
<th class="tbheader"
|
|
|
|
style="text-align: right;"
|
|
|
|
width="30%">Total
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<tr *ngFor="let item of order.lines">
|
|
|
|
<td class="tbdetail"
|
|
|
|
style="text-align: left;"
|
|
|
|
width="55%">{{item.name}}
|
|
|
|
</td>
|
|
|
|
<td class="tbdetail"
|
|
|
|
style="text-align: left;"
|
|
|
|
width="15%">{{item.qty}}
|
|
|
|
</td>
|
|
|
|
<td class="tbdetail"
|
|
|
|
style="text-align: right;"
|
|
|
|
width="30%">{{item.qty * item.cost | number:'1.02' | currency: order.currency.toUpperCase() }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-07-27 01:37:14 +00:00
|
|
|
<div style="display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding-left: 20%;
|
|
|
|
padding-right: 20%;
|
|
|
|
margin-top: 10px;">
|
2022-07-26 15:00:17 +00:00
|
|
|
<span>
|
|
|
|
<button mat-stroked-button class="minibutton" color="primary" (click)="invoice(order)">Invoice</button>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
<button mat-stroked-button class="minibutton" color="primary" (click)="receipt(order)">Receipt</button>
|
|
|
|
</span>
|
2022-07-25 21:42:56 +00:00
|
|
|
</div>
|
2022-07-15 02:35:06 +00:00
|
|
|
</mat-expansion-panel>
|
|
|
|
</mat-accordion>
|
|
|
|
<p class="text" *ngIf = "orders.length <= 0">No orders</p>
|
|
|
|
</div>
|