diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-11-29 16:31:58 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-11-29 16:31:58 +0700 |
| commit | ddb82d97f794d59d846aa9b7c3d1dd1eff9cb9a9 (patch) | |
| tree | 30cb8b1c382dbbbd93b0b16a484c15032c8d3823 /src-migrate/modules/cart/components | |
| parent | d324d01bb9413a023a158a7bd15ba36bb7beb9bc (diff) | |
ppn 12 persen
Diffstat (limited to 'src-migrate/modules/cart/components')
| -rw-r--r-- | src-migrate/modules/cart/components/Summary.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-migrate/modules/cart/components/Summary.tsx b/src-migrate/modules/cart/components/Summary.tsx index 2e55c8df..0af5ab18 100644 --- a/src-migrate/modules/cart/components/Summary.tsx +++ b/src-migrate/modules/cart/components/Summary.tsx @@ -25,6 +25,7 @@ const CartSummary = ({ grandTotal, isLoaded = false, }: Props) => { + const PPN : number = process.env.NEXT_PUBLIC_PPN ? parseFloat(process.env.NEXT_PUBLIC_PPN) : 0; return ( <> <div className='text-h-sm font-medium'>Ringkasan Pesanan</div> @@ -50,7 +51,7 @@ const CartSummary = ({ </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> |
