Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Show line shipping total
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Aug 16, 2019
1 parent d99363c commit 4024205
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@
<th>Variant</th>
<th>QTY</th>
<th>Unit Price</th>
<th>Shipping Total</th>
<th>Discount</th>
<th>Tax Rate</th>
<th>Tax Amount</th>
Expand All @@ -369,16 +370,18 @@
{{ line.variant_name }}
</td>
<td>-</td>
<td>{{ line.unit_cost }}</td>
<td>{{ line.discount_total }}</td>
<td v-html="currencySymbol(line.unit_cost)" v-if="line.unit_cost"></td>
<td v-else>1</td>
<td>-</td>
<td v-html="currencySymbol(line.discount_total ? line.discount_total : 0)"></td>
<td><span v-if="line.tax_total">VAT @ {{ line.tax_rate }}%</span><span v-else>-</span></td>
<td v-html="currencySymbol(line.tax_total)"></td>
<td v-html="currencySymbol(line.line_total)"></td>
</tr>
</template>
<template v-else>
<tr>
<td colspan="6"></td>
<td colspan="7"></td>
<td colspan="2" align="right"><strong>Delivery Total (Excl Tax)</strong></td>
<td v-html="currencySymbol(order.delivery_total)"></td>
</tr>
Expand All @@ -404,12 +407,12 @@
<td v-html="currencySymbol(order.delivery_total)"></td>
</tr> -->
<tr>
<td colspan="6"></td>
<td colspan="7"></td>
<td colspan="2" align="right"><strong>VAT</strong></td>
<td v-html="currencySymbol(order.tax_total)"></td>
</tr>
<tr>
<td colspan="6"></td>
<td colspan="7"></td>
<td colspan="2" align="right"><strong>Total</strong></td>
<td v-html="currencySymbol(order.order_total)"></td>
</tr>
Expand Down Expand Up @@ -440,6 +443,10 @@
<td>{{ line.variant_name ? line.variant_name : '-' }}</td>
<td>{{ line.quantity }}</td>
<td v-html="currencySymbol(line.unit_price)"></td>

<td v-html="currencySymbol(line.delivery_total)" v-if="line.delivery_total"></td>
<td v-else>-</td>

<td>
<template v-if="line.discount_total">
<span class="text-danger" v-html="currencySymbol(-line.discount_total)"></span>
Expand All @@ -448,6 +455,7 @@
-
</template>
</td>

<td><span v-if="line.tax_total">VAT @ {{ line.tax_rate }}%</span><span v-else>-</span></td>
<td v-html="currencySymbol(line.tax_total)"></td>
<td v-html="currencySymbol(line.line_total - line.discount_total)"></td>
Expand Down

0 comments on commit 4024205

Please sign in to comment.