- {{ productHelpers.getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) }}
- {{ productHelpers.getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}
+ {{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) : getProduct(item.productId).productName }}
+ {{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}
@@ -118,8 +118,8 @@
- {{ productHelpers.getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) }}
- {{ productHelpers.getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}
+ {{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) : getProduct(item.productId).productName }}
+ {{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}
@@ -180,7 +180,7 @@ import {
import { defineComponent } from 'vue';
import { addOutline, cameraOutline, checkmarkDone, copyOutline, eyeOffOutline, eyeOutline, locationOutline, saveOutline, timeOutline } from 'ionicons/icons';
import ReceivingHistoryModal from '@/views/ReceivingHistoryModal.vue'
-import { DxpShopifyImg, translate } from '@hotwax/dxp-components';
+import { DxpShopifyImg, translate, getProductIdentificationValue } from '@hotwax/dxp-components';
import { useStore, mapGetters } from 'vuex';
import { useRouter } from 'vue-router';
import Scanner from "@/components/Scanner.vue"
@@ -188,7 +188,7 @@ import AddProductToPOModal from '@/views/AddProductToPOModal.vue'
import ClosePurchaseOrderModal from '@/components/ClosePurchaseOrderModal.vue'
import LocationPopover from '@/components/LocationPopover.vue'
import ImageModal from '@/components/ImageModal.vue';
-import { copyToClipboard, hasError, productHelpers, showToast } from '@/utils';
+import { copyToClipboard, hasError, showToast } from '@/utils';
import { Actions, hasPermission } from '@/authorization'
export default defineComponent({
@@ -396,12 +396,12 @@ export default defineComponent({
eyeOutline,
hasPermission,
locationOutline,
- productHelpers,
router,
saveOutline,
store,
timeOutline,
- translate
+ translate,
+ getProductIdentificationValue
};
},
});
diff --git a/src/views/ReturnDetails.vue b/src/views/ReturnDetails.vue
index a1809d3d..7b848e4b 100644
--- a/src/views/ReturnDetails.vue
+++ b/src/views/ReturnDetails.vue
@@ -41,8 +41,8 @@
- {{ productHelpers.getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) }}
- {{ productHelpers.getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}
+ {{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) : getProduct(item.productId).productName }}
+ {{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}
@@ -110,12 +110,12 @@ import { defineComponent } from 'vue';
import { checkmarkDone, barcodeOutline, locationOutline } from 'ionicons/icons';
import { mapGetters, useStore } from "vuex";
import AddProductModal from '@/views/AddProductModal.vue'
-import { DxpShopifyImg, translate } from '@hotwax/dxp-components';
+import { DxpShopifyImg, translate, getProductIdentificationValue } from '@hotwax/dxp-components';
import { useRouter } from 'vue-router';
import Scanner from "@/components/Scanner.vue";
import ImageModal from '@/components/ImageModal.vue';
import { hasError } from '@/utils';
-import { showToast, productHelpers } from '@/utils'
+import { showToast } from '@/utils'
import { Actions, hasPermission } from '@/authorization'
export default defineComponent({
@@ -292,9 +292,9 @@ export default defineComponent({
hasPermission,
locationOutline,
store,
- productHelpers,
router,
- translate
+ translate,
+ getProductIdentificationValue
};
},
});
diff --git a/src/views/ShipmentDetails.vue b/src/views/ShipmentDetails.vue
index 911bf7a7..8795f519 100644
--- a/src/views/ShipmentDetails.vue
+++ b/src/views/ShipmentDetails.vue
@@ -39,8 +39,8 @@
- {{ productHelpers.getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) }}
- {{ productHelpers.getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}
+ {{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) : getProduct(item.productId).productName }}
+ {{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}
@@ -116,12 +116,12 @@ import { defineComponent } from 'vue';
import { add, checkmarkDone, cameraOutline, locationOutline } from 'ionicons/icons';
import { mapGetters, useStore } from "vuex";
import AddProductModal from '@/views/AddProductModal.vue'
-import { DxpShopifyImg, translate } from '@hotwax/dxp-components';
+import { DxpShopifyImg, translate, getProductIdentificationValue } from '@hotwax/dxp-components';
import { useRouter } from 'vue-router';
import Scanner from "@/components/Scanner.vue";
import LocationPopover from '@/components/LocationPopover.vue'
import ImageModal from '@/components/ImageModal.vue';
-import { hasError, productHelpers, showToast } from '@/utils'
+import { hasError, showToast } from '@/utils'
import { Actions, hasPermission } from '@/authorization'
export default defineComponent({
@@ -311,9 +311,9 @@ export default defineComponent({
hasPermission,
locationOutline,
store,
- productHelpers,
router,
- translate
+ translate,
+ getProductIdentificationValue
};
},
});