From bc605b441ac5a4e8e466a1e9cc3407ef02d48aa3 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Mon, 22 Sep 2025 13:20:50 +0330 Subject: [PATCH] add fields --- .../components/cart/global/CartSummary.vue | 18 ++++++++++++++---- frontend/types/global.d.ts | 5 +++-- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/frontend/components/cart/global/CartSummary.vue b/frontend/components/cart/global/CartSummary.vue index 1857c48..4bf28d2 100644 --- a/frontend/components/cart/global/CartSummary.vue +++ b/frontend/components/cart/global/CartSummary.vue @@ -133,11 +133,14 @@ const handlePayment = () => { {{ cart?.cart_total }} +
+ تخفیف کلی محصولات: -
- مالیات ارزش افزوده: - - {{ cart?.tax }} + + {{ cart?.items_discount_amount }} +
{
+
+ مالیات ارزش افزوده: + + {{ cart?.tax_amount }} +
+ +
جمع کل: diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index f98539f..2df54b8 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -1,4 +1,4 @@ -export {}; +export { }; declare global { type ApiPaginated = { @@ -235,7 +235,8 @@ declare global { discount_code: DiscountCode; items: CartItem[]; cart_total: string; - tax: string; + items_discount_amount: string + tax_amount: string; final_price: string; address: Address; };