From a788186274f4f702af2c47ccd1dc4e3751f36ec5 Mon Sep 17 00:00:00 2001 From: k2maan Date: Fri, 24 Nov 2023 16:54:05 +0530 Subject: [PATCH] Improved: variable naming in template for rendering kit products (#268) --- src/views/Completed.vue | 20 ++++++++++---------- src/views/InProgress.vue | 26 +++++++++++++------------- src/views/OpenOrders.vue | 20 ++++++++++---------- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/views/Completed.vue b/src/views/Completed.vue index 118bb896..6a48850d 100644 --- a/src/views/Completed.vue +++ b/src/views/Completed.vue @@ -90,33 +90,33 @@
-
+
-

{{ getProduct(kitProducts[0].parentProductId).productName }}

-

{{ getProduct(kitProducts[0].parentProductId).sku }}

+

{{ getProduct(kitProduct[0].parentProductId).productName }}

+

{{ getProduct(kitProduct[0].parentProductId).sku }}

-
+
- + -

{{ items.productSku }}

- {{ items.productName }} -

{{ getFeature(getProduct(items.productId).featureHierarchy, '1/COLOR/')}} {{ getFeature(getProduct(items.productId).featureHierarchy, '1/SIZE/')}}

+

{{ item.productSku }}

+ {{ item.productName }} +

{{ getFeature(getProduct(item.productId).featureHierarchy, '1/COLOR/')}} {{ getFeature(getProduct(item.productId).featureHierarchy, '1/SIZE/')}}

diff --git a/src/views/InProgress.vue b/src/views/InProgress.vue index c9dfe74d..287f2b06 100644 --- a/src/views/InProgress.vue +++ b/src/views/InProgress.vue @@ -150,47 +150,47 @@
-
+
-

{{ getProduct(kitProducts[0].parentProductId).productName }}

-

{{ getProduct(kitProducts[0].parentProductId).sku }}

+

{{ getProduct(kitProduct[0].parentProductId).productName }}

+

{{ getProduct(kitProduct[0].parentProductId).sku }}

- + - {{ `Box ${kitProducts[0].selectedBox}` }} + {{ `Box ${kitProduct[0].selectedBox}` }}
-
+
- + -

{{ items.productSku }}

- {{ items.productName }} -

{{ getFeature(getProduct(items.productId).featureHierarchy, '1/COLOR/')}} {{ getFeature(getProduct(items.productId).featureHierarchy, '1/SIZE/')}}

+

{{ item.productSku }}

+ {{ item.productName }} +

{{ getFeature(getProduct(item.productId).featureHierarchy, '1/COLOR/')}} {{ getFeature(getProduct(item.productId).featureHierarchy, '1/SIZE/')}}

diff --git a/src/views/OpenOrders.vue b/src/views/OpenOrders.vue index 414ab88e..d6474b12 100644 --- a/src/views/OpenOrders.vue +++ b/src/views/OpenOrders.vue @@ -82,33 +82,33 @@
-
+
-

{{ getProduct(kitProducts[0].parentProductId).productName }}

-

{{ getProduct(kitProducts[0].parentProductId).sku }}

+

{{ getProduct(kitProduct[0].parentProductId).productName }}

+

{{ getProduct(kitProduct[0].parentProductId).sku }}

-
+
- + -

{{ items.productSku }}

- {{ items.productName }} -

{{ getFeature(getProduct(items.productId).featureHierarchy, '1/COLOR/')}} {{ getFeature(getProduct(items.productId).featureHierarchy, '1/SIZE/')}}

+

{{ item.productSku }}

+ {{ item.productName }} +

{{ getFeature(getProduct(item.productId).featureHierarchy, '1/COLOR/')}} {{ getFeature(getProduct(item.productId).featureHierarchy, '1/SIZE/')}}