@lancom/shared 0.0.165 → 0.0.167

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.
@@ -4,6 +4,9 @@ import { sortSizes } from './../utils/sizes';
4
4
  import { sortByName } from './../utils/filters';
5
5
 
6
6
  export default {
7
+ updateInventoryFromLink(link) {
8
+ return _post('admin/products/inventory/link', { link });
9
+ },
7
10
  fetchPostcodes() {
8
11
  return _get('admin/postcodes');
9
12
  },
@@ -127,6 +127,7 @@ export default {
127
127
  },
128
128
  mounted() {
129
129
  this.selectedTab = this.avilableTabs[0]?.value;
130
+ this.inclGSTFinal = this.priceIncludeGST;
130
131
  this.loadHelpMessages({
131
132
  shop: this.shop._id,
132
133
  group: 'garment-print-price-details'
@@ -297,6 +297,7 @@
297
297
 
298
298
  <script>
299
299
  import Multiselect from 'vue-multiselect';
300
+ import gtm from '@lancom/shared/assets/js/utils/gtm';
300
301
  import api from '@lancom/shared/assets/js/api';
301
302
  import { mapGetters } from 'vuex';
302
303
  import CheckedIcon from '@lancom/shared/components/common/checked-icon';
@@ -405,6 +406,9 @@ export default {
405
406
  shop: this.shop._id
406
407
  };
407
408
  const quote = await api.saveQuoteRequest(body, this.shop._id);
409
+
410
+ gtm.push({ event: 'generate_lead', currency: 'AUD' });
411
+
408
412
  this.$toastr.s('Your request will be processed within 24-48 hours. Thank You.');
409
413
  this.$emit('added', quote);
410
414
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.165",
3
+ "version": "0.0.167",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {