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; };