summaryrefslogtreecommitdiff
path: root/src/lib/cart/components/Cart.jsx
diff options
context:
space:
mode:
authortrisusilo <tri.susilo@altama.co.id>2024-12-31 09:01:02 +0000
committertrisusilo <tri.susilo@altama.co.id>2024-12-31 09:01:02 +0000
commitf66b00a36b39a1efd506fc7d96a240c10e77ec62 (patch)
treef640f608d2fe9da2b61d5fb31af52a16dde66240 /src/lib/cart/components/Cart.jsx
parentd76f96c44f85e7e0efbd544e6b97bd80920b0039 (diff)
parentd20adeb6a5f6e153e2d1cfc8c8c77f4cceb743e8 (diff)
Merged in CR/PPn12% (pull request #400)
CR/PPn12%
Diffstat (limited to 'src/lib/cart/components/Cart.jsx')
-rw-r--r--src/lib/cart/components/Cart.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/cart/components/Cart.jsx b/src/lib/cart/components/Cart.jsx
index c6aaa596..1e25d959 100644
--- a/src/lib/cart/components/Cart.jsx
+++ b/src/lib/cart/components/Cart.jsx
@@ -27,6 +27,7 @@ import CardProdcuctsList from '@/core/components/elements/Product/cartProductsLi
// import cardProdcuctsList from '@/core/components/elements/Product/cartProductsList'
const Cart = () => {
+ const PPN = process.env.NEXT_PUBLIC_PPN
const router = useRouter()
const [products, setProducts] = useState(null)
const [isLoading, setIsLoading] = useState(true)
@@ -97,7 +98,7 @@ const Cart = () => {
if (product.canBuy == false) {
toggleSelected(product.id)
}
- let priceBeforeTax = product.price.price / 1.11
+ let priceBeforeTax = product.price.price / PPN
calculateTotalPriceBeforeTax += priceBeforeTax * product.quantity
calculateTotalTaxAmount += (product.price.price - priceBeforeTax) * product.quantity
calculateTotalDiscountAmount +=