diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-31 09:53:27 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-31 09:53:27 +0700 |
| commit | d20adeb6a5f6e153e2d1cfc8c8c77f4cceb743e8 (patch) | |
| tree | f640f608d2fe9da2b61d5fb31af52a16dde66240 /src-migrate/modules/cart/components | |
| parent | b43fdb49a3c6e26a7e0a790bf8f4425f76a57572 (diff) | |
ppn 12%
Diffstat (limited to 'src-migrate/modules/cart/components')
| -rw-r--r-- | src-migrate/modules/cart/components/CartSummaryMobile.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-migrate/modules/cart/components/CartSummaryMobile.tsx b/src-migrate/modules/cart/components/CartSummaryMobile.tsx index d9f72e0e..02258204 100644 --- a/src-migrate/modules/cart/components/CartSummaryMobile.tsx +++ b/src-migrate/modules/cart/components/CartSummaryMobile.tsx @@ -29,6 +29,7 @@ const CartSummaryMobile = ({ isLoaded = false, }: Props) => { const [showPopup, setShowPopup] = useState(false); + const PPN : number = process.env.NEXT_PUBLIC_PPN ? parseFloat(process.env.NEXT_PUBLIC_PPN) : 0; return ( <> <BottomPopup @@ -63,7 +64,7 @@ const CartSummaryMobile = ({ </Skeleton> <Skeleton isLoaded={isLoaded} className={style.line}> - <span className={style.label}>Tax 11%</span> + <span className={style.label}>Tax {((PPN - 1) * 100).toFixed(0)}%</span> <span className={style.value}>Rp {formatCurrency(tax || 0)}</span> </Skeleton> |
