From e52f0ee9516d8601ffc92df9c085c2eee763c55c Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Thu, 21 Nov 2024 16:58:00 +0700 Subject: update produk ready stock berdasarkan variant --- src-migrate/modules/product-detail/components/PriceAction.tsx | 2 +- src-migrate/types/productVariant.ts | 1 + src/utils/solrMapping.js | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx index 413c643a..0b27b1b3 100644 --- a/src-migrate/modules/product-detail/components/PriceAction.tsx +++ b/src-migrate/modules/product-detail/components/PriceAction.tsx @@ -162,7 +162,7 @@ const PriceAction = ({ product }: Props) => { */}
- {product?.is_in_bu && ( + {selectedVariant?.is_in_bu && ( { 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 = { -- cgit v1.2.3