Taxes, tips and bugfixes #10
4 changed files with 57 additions and 3 deletions
|
@ -51,6 +51,24 @@
|
||||||
{{( item.qty * item.cost ) | number : '1.02' | currency: order.currency.toUpperCase()}}
|
{{( item.qty * item.cost ) | number : '1.02' | currency: order.currency.toUpperCase()}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr *ngIf="order.taxAmount > 0">
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">Sales Tax</td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.taxAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr *ngIf="order.vatAmount > 0">
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">Value-Added Tax</td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.vatAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr *ngIf="order.tipAmount > 0">
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">Tip</td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.tipAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
<tr class="invoice-title">
|
<tr class="invoice-title">
|
||||||
<th width="55%"
|
<th width="55%"
|
||||||
class="detailLineRight">
|
class="detailLineRight">
|
||||||
|
|
|
@ -154,6 +154,24 @@
|
||||||
width="30%">{{item.qty * item.cost | number:'1.02' | currency: order.currency.toUpperCase() }}
|
width="30%">{{item.qty * item.cost | number:'1.02' | currency: order.currency.toUpperCase() }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr class="tbdetail" *ngIf="order.taxAmount > 0">
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">Sales Tax</td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.taxAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="tbdetail" *ngIf="order.vatAmount > 0">
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">Value-Added Tax</td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.vatAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="tbdetail" *ngIf="order.tipAmount > 0">
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">Tip</td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.tipAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div style="display: flex;
|
<div style="display: flex;
|
||||||
|
|
|
@ -75,13 +75,13 @@
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr *ngIf="tax > 0">
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">Sales Tax</td>
|
<td class="newOrdertbdetail" style="text-align: right;">Sales Tax</td>
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">{{ tax / 100 | percent:'1.2-4'}}</td>
|
<td class="newOrdertbdetail" style="text-align: right;">{{ tax / 100 | percent:'1.2-4'}}</td>
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">{{ total * tax / 100 | currency: getCurrency() }}</td>
|
<td class="newOrdertbdetail" style="text-align: right;">{{ total * tax / 100 | currency: getCurrency() }}</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr *ngIf="vat > 0">
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">Value-Added Tax</td>
|
<td class="newOrdertbdetail" style="text-align: right;">Value-Added Tax</td>
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">{{ vat / 100 | percent:'1.2-4' }}</td>
|
<td class="newOrdertbdetail" style="text-align: right;">{{ vat / 100 | percent:'1.2-4' }}</td>
|
||||||
<td class="newOrdertbdetail" style="text-align: right;">{{ total * vat / 100 | currency: getCurrency() }}</td>
|
<td class="newOrdertbdetail" style="text-align: right;">{{ total * vat / 100 | currency: getCurrency() }}</td>
|
||||||
|
|
|
@ -51,6 +51,24 @@
|
||||||
{{( item.qty * item.cost ) | number : '1.02' | currency: order.currency.toUpperCase()}}
|
{{( item.qty * item.cost ) | number : '1.02' | currency: order.currency.toUpperCase()}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr *ngIf="order.taxAmount > 0">
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">Sales Tax</td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.taxAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr *ngIf="order.vatAmount > 0">
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">Value-Added Tax</td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.vatAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr *ngIf="order.tipAmount > 0">
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">Tip</td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;"></td>
|
||||||
|
<td class="newOrdertbdetail" style="text-align: right;">{{ order.tipAmount | currency: order.currency.toUpperCase() }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
<tr class="invoice-title">
|
<tr class="invoice-title">
|
||||||
<th width="55%"
|
<th width="55%"
|
||||||
class="detailLineRight">
|
class="detailLineRight">
|
||||||
|
|
Loading…
Reference in a new issue