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-detail/components/PriceAction.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src-migrate/modules/product-detail/components/PriceAction.tsx')

diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx
index 0b27b1b3..9348bbfb 100644
--- a/src-migrate/modules/product-detail/components/PriceAction.tsx
+++ b/src-migrate/modules/product-detail/components/PriceAction.tsx
@@ -17,6 +17,7 @@ type Props = {
   product: IProductDetail;
 };
 
+const PPN : number = process.env.NEXT_PUBLIC_PPN ? parseFloat(process.env.NEXT_PUBLIC_PPN) : 0;
 const PriceAction = ({ product }: Props) => {
   const {
     activePrice,
@@ -101,7 +102,7 @@ const PriceAction = ({ product }: Props) => {
           <div className='h-1' />
           <div className={style['secondary-text']}>
             Termasuk PPN: Rp{' '}
-            {formatCurrency(Math.round(activePrice.price_discount * 1.11))}
+            {formatCurrency(Math.round(activePrice.price_discount * PPN))}
           </div>
         </>
       )}
-- 
cgit v1.2.3

