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/core | |
| parent | b43fdb49a3c6e26a7e0a790bf8f4425f76a57572 (diff) | |
ppn 12%
Diffstat (limited to 'src/core')
| -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, |
