From ddb82d97f794d59d846aa9b7c3d1dd1eff9cb9a9 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Fri, 29 Nov 2024 16:31:58 +0700
Subject: ppn 12 persen

---
 src-migrate/modules/product-card/components/ProductCard.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src-migrate/modules/product-card/components/ProductCard.tsx')

diff --git a/src-migrate/modules/product-card/components/ProductCard.tsx b/src-migrate/modules/product-card/components/ProductCard.tsx
index a439cdc8..8d3b55fb 100644
--- a/src-migrate/modules/product-card/components/ProductCard.tsx
+++ b/src-migrate/modules/product-card/components/ProductCard.tsx
@@ -16,6 +16,7 @@ type Props = {
   layout?: 'vertical' | 'horizontal';
 };
 
+const PPN : number = process.env.NEXT_PUBLIC_PPN ? parseFloat(process.env.NEXT_PUBLIC_PPN) : 0;
 const ProductCard = ({ product, layout = 'vertical' }: Props) => {
   const utmSource = useUtmSource();
   const { isDesktop, isMobile } = useDevice();
@@ -127,7 +128,7 @@ const ProductCard = ({ product, layout = 'vertical' }: Props) => {
 
         <div className={style['price-inc']}>
           Inc PPN: Rp{' '}
-          {formatCurrency(Math.round(product.lowest_price.price * 1.11))}
+          {formatCurrency(Math.round(product.lowest_price.price * PPN))}
         </div>
 
         <div className='h-1' />
-- 
cgit v1.2.3

