@lancom/shared 0.0.155 → 0.0.157

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.
@@ -40,6 +40,18 @@ export default {
40
40
  removeNewsTag(id) {
41
41
  return _delete(`admin/news-tag/${id}`);
42
42
  },
43
+ fetchCanonicalProducts() {
44
+ return _get('admin/canonical-product');
45
+ },
46
+ fetchCanonicalProductById(id) {
47
+ return _get(`admin/canonical-product/${id}`);
48
+ },
49
+ saveCanonicalProduct(canonicalProduct) {
50
+ return canonicalProduct._id ? _put(`admin/canonical-product/${canonicalProduct._id}`, canonicalProduct) : _post('admin/canonical-product', canonicalProduct);
51
+ },
52
+ removeCanonicalProduct(id) {
53
+ return _delete(`admin/canonical-product/${id}`);
54
+ },
43
55
  fetchShops() {
44
56
  return _get('admin/shops');
45
57
  },
@@ -67,7 +67,7 @@ export default {
67
67
  },
68
68
  data() {
69
69
  return {
70
- inclGSTFinal: true,
70
+ inclGSTFinal: false,
71
71
  inclGSTSpinner: false,
72
72
  inclGSTSpinnerTimer: null,
73
73
  orderPrintTypes: PRINT_TYPES_LIST,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.155",
3
+ "version": "0.0.157",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {
package/store/product.js CHANGED
@@ -9,7 +9,7 @@ import { getProductsForCalculatePricing } from '@lancom/shared/assets/js/utils/p
9
9
  import { sortByName } from '../assets/js/utils/filters';
10
10
 
11
11
  export const state = () => ({
12
- priceIncludeGST: true,
12
+ priceIncludeGST: false,
13
13
  product: null,
14
14
  preSetPrint: null,
15
15
  loadError: null,