@lancom/shared 0.0.271 → 0.0.273

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,6 +79,7 @@
79
79
  v-for="product of products"
80
80
  :key="product._id"
81
81
  :product="product"
82
+ :order="order"
82
83
  :responsive="responsive"
83
84
  class="OrderRefundView__product" />
84
85
  </div>
@@ -88,13 +89,13 @@
88
89
  'OrderRefundView__totals--paid': isPaid
89
90
  }">
90
91
  <div class="lc_regular16">
91
- Total ex {{ taxName }}: <b>{{ refund.total | price(currency) }}</b>
92
+ Total ex {{ taxName }}: <b>{{ refund.total | price(order.currency) }}</b>
92
93
  </div>
93
94
  <div class="lc_regular16">
94
- {{ taxName }}: <b>{{ refund.totalGST - refund.total | price(currency) }}</b>
95
+ {{ taxName }}: <b>{{ refund.totalGST - refund.total | price(order.currency) }}</b>
95
96
  </div>
96
97
  <div class="lc_regular16">
97
- Total inc {{ taxName }}: <b>{{ refund.totalGST | price(currency) }}</b>
98
+ Total inc {{ taxName }}: <b>{{ refund.totalGST | price(order.currency) }}</b>
98
99
  </div>
99
100
  </div>
100
101
  </div>
@@ -102,7 +102,7 @@ async function googleShoppingFeed(axios, config, availableStores) {
102
102
  info['g:shipping_width'] = { _text: `${parseInt(product.volume.width)} cm` };
103
103
  }
104
104
  if (product.volume.height) {
105
- info['g:shipping_height'] = { _text: `${parseInt(product.volume.height * (sp.multipackQty || 1))} cm` };
105
+ info['g:shipping_height'] = { _text: `${parseInt(+product.volume.height * (+sp.multipackQty || 1)) || 1} cm` };
106
106
  }
107
107
  }
108
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.271",
3
+ "version": "0.0.273",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {
@@ -2,6 +2,7 @@
2
2
  <div class="OrderViewPage__wrapper">
3
3
  <div :class="isFullScreen ? '' : 'content-inner'">
4
4
  <order-refund-view
5
+ v-if="order"
5
6
  :order="order"
6
7
  :refund="refund"
7
8
  :responsive="!isFullScreen" />