diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-22 10:10:19 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-22 10:10:19 +0700 |
| commit | 5cc3c938da3dfde636b918b8f2fdef33f3c61419 (patch) | |
| tree | 222177fe6dce70fc608698c700de17032105998a /src/core/utils | |
| parent | 238c675eecaf6f4f953d87c4b0a128bfa139cff4 (diff) | |
| parent | 6d9c1067b6e857eb95f12864cc88117350ae6cfb (diff) | |
Merge branch 'new-release' into CR/form-merchant
# Conflicts:
# src/lib/form/components/Merchant.jsx
Diffstat (limited to 'src/core/utils')
| -rw-r--r-- | src/core/utils/googleTag.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/utils/googleTag.js b/src/core/utils/googleTag.js index 96a6bd2e..f1550071 100644 --- a/src/core/utils/googleTag.js +++ b/src/core/utils/googleTag.js @@ -1,3 +1,5 @@ +const PPN = process.env.NEXT_PUBLIC_PPN + const mapVariants = (variants) => { return variants.map((variant) => { const res = { @@ -22,7 +24,7 @@ const sumTotal = (variants) => { 0 ) let subtotal = totalPurchase - totalDiscount - let tax = Math.round(subtotal * 0.11) + let tax = Math.round(subtotal * (PPN - 1)) let grandTotal = subtotal + tax return { totalPurchase: totalPurchase, |
