@lancom/shared 0.0.153 → 0.0.155

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.
@@ -3,6 +3,7 @@ export function convertQuoteToOrder(quote, option) {
3
3
  return {
4
4
  paymentMethod: option.paymentMethod || 'deposit',
5
5
  billingAddress: quote.address,
6
+ notes: (quote.notes || []).filter(({ text }) => !!text),
6
7
  shippingAddress: quote.address,
7
8
  products: option.products.map(p => ({
8
9
  ...p,
@@ -22,7 +23,7 @@ export function convertQuoteToOrder(quote, option) {
22
23
  revision: null,
23
24
  note: null,
24
25
  type: 'Artwork Files',
25
- file: f.file
26
+ file: f.file || f
26
27
  }))
27
28
  };
28
29
  }
@@ -46,6 +46,11 @@
46
46
  @next="submit" />
47
47
  </div>
48
48
  <div v-else>
49
+ <div
50
+ v-if="isFailedOrderCharge"
51
+ class="OrderPaymentInformation__error mb-8">
52
+ {{ errorMessage }}
53
+ </div>
49
54
  <payment-cart
50
55
  ref="paymentCart"
51
56
  :amount="cartPricing.totalPrice"
@@ -116,6 +121,7 @@ export default {
116
121
  }).join('</p><p>')}</p>`;
117
122
  },
118
123
  async submit() {
124
+ this.errorMessage = null;
119
125
  if (this.isDepositPayment) {
120
126
  this.setCard(null);
121
127
  this.submitOrder();
@@ -157,7 +157,7 @@
157
157
  Total inc GST: <b>{{ model.totalGST | price }}</b>
158
158
  </div>
159
159
  <div class="lc_regular16">
160
- Pending Payment: <b>{{ model.totalGST | price }}</b>
160
+ {{ isPaid ? 'Paid' : 'Pending Payment' }}: <b>{{ model.totalGST | price }}</b>
161
161
  </div>
162
162
  </div>
163
163
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.153",
3
+ "version": "0.0.155",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {