diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-21 16:58:00 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-21 16:58:00 +0700 |
| commit | e52f0ee9516d8601ffc92df9c085c2eee763c55c (patch) | |
| tree | fa675d50532cf88ba95f0e6061321cfee89e6223 /src/utils | |
| parent | e2a12aa22089349cb48511d0584991b9db64e0ca (diff) | |
<iman> update produk ready stock berdasarkan variant
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/solrMapping.js | 5 |
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 = { |
