add fields

This commit is contained in:
Parsa Nazer
2025-09-22 13:20:50 +03:30
parent f736fd21e6
commit bc605b441a
2 changed files with 17 additions and 6 deletions
@@ -133,11 +133,14 @@ const handlePayment = () => {
{{ cart?.cart_total }}
</span>
</div>
<div
class="flex items-center justify-between w-full text-gray-500"
>
<span class="max-w-1/2 text-sm"> تخفیف کلی محصولات: </span>
<div class="flex items-center justify-between w-full text-slate-800">
<span class="max-w-1/2 text-sm"> مالیات ارزش افزوده: </span>
<span class="max-w-1/2 text-sm"> {{ cart?.tax }} </span>
<span class="max-w-1/2 text-sm">
{{ cart?.items_discount_amount }}
</span>
</div>
<div
@@ -151,6 +154,13 @@ const handlePayment = () => {
</span>
</div>
<div class="flex items-center justify-between w-full text-slate-800">
<span class="max-w-1/2 text-sm"> مالیات ارزش افزوده: </span>
<span class="max-w-1/2 text-sm"> {{ cart?.tax_amount }} </span>
</div>
<div class="flex items-center justify-between w-full text-slate-900">
<span class="max-w-1/2 text-sm"> جمع کل: </span>
+3 -2
View File
@@ -1,4 +1,4 @@
export {};
export { };
declare global {
type ApiPaginated<T> = {
@@ -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;
};