summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-08-19 09:36:24 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-08-19 09:36:24 +0700
commitd1c0e083ac8f64dfaa8505fc11e30728dbd5a58d (patch)
tree0f715c4420e83d3ece6bec1ffe42bf3e79699d12 /src/utils
parentf19bed80a5711d2904745b1dff283d7936337b06 (diff)
<iman> update voucher pasti hemat avoid failed
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/solrMapping.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils/solrMapping.js b/src/utils/solrMapping.js
index d4694eb2..ff851f6c 100644
--- a/src/utils/solrMapping.js
+++ b/src/utils/solrMapping.js
@@ -38,6 +38,7 @@ export const productMappingSolr = (products, pricelist) => {
qtySold: product?.qty_sold_f || 0,
isTkdn:product?.tkdn_b || false,
isSni:product?.sni_b || false,
+ newVoucherPastiHemat: [],
voucherPastiHemat:product?.voucher_pastihemat || []
};
@@ -56,6 +57,14 @@ export const productMappingSolr = (products, pricelist) => {
name: product.category_name_s || '',
},
];
+ productMapped.newVoucherPastiHemat = [
+ {
+ min_purchase: product.min_purchase_f || 0,
+ discount_type: product.discount_type_s || '',
+ discount_amount: product.discount_amount_f || 0,
+ max_discount: product.max_discount_f || 0,
+ },
+ ];
return productMapped;
});
};