summaryrefslogtreecommitdiff
path: root/src/utils/solrMapping.js
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-29 10:37:21 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-29 10:37:21 +0700
commitc996c4e0631aa3d51acc83f4cc23418e91f3158f (patch)
tree63d31733edd048ea50780d966ff0a1d5a4fa4866 /src/utils/solrMapping.js
parentf7a13c357a6d44f9fa6e0c034292ab782249731e (diff)
parent37cd18a88f0f104e81c1b6f33f9bab7b2a0b2dfb (diff)
Merge branch 'new-release' into CR/website-improvement
Diffstat (limited to 'src/utils/solrMapping.js')
-rw-r--r--src/utils/solrMapping.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/solrMapping.js b/src/utils/solrMapping.js
index 01a8587c..ecd62be2 100644
--- a/src/utils/solrMapping.js
+++ b/src/utils/solrMapping.js
@@ -75,7 +75,7 @@ export const productMappingSolr = (products, pricelist) => {
name: product.manufacture_name_s || '',
imagePromotion1: product.image_promotion_1_s || '',
imagePromotion2: product.image_promotion_2_s || '',
- logo : product.x_logo_manufacture_s || '',
+ logo: product.x_logo_manufacture_s || '',
};
}
@@ -129,13 +129,14 @@ export const variantsMappingSolr = (parent, products, pricelist) => {
manufacture: {},
parent: {},
qtySold: product?.qty_sold_f || 0,
+ is_in_bu: product?.is_in_bu_b || false,
};
if (product.manufacture_id_i && product.manufacture_name_s) {
productMapped.manufacture = {
id: product.manufacture_id_i || '',
name: product.manufacture_name_s || '',
- logo : parent[0]?.x_logo_manufacture_s
+ logo: parent[0]?.x_logo_manufacture_s,
};
}
productMapped.parent = {