diff --git a/src/pages/orders/Detail.tsx b/src/pages/orders/Detail.tsx index 00be893..8e37163 100644 --- a/src/pages/orders/Detail.tsx +++ b/src/pages/orders/Detail.tsx @@ -176,6 +176,11 @@ const OrderDetail: FC = () => {
فروشگاه: {item.shop?.shopName}
+ {item.shipper && ( +
+ ارسال کننده: {item.shipper.name} +
+ )}
{
{product.product.title_fa}
+ {product.variant.themeValue && ( +
+ تنوع خریداری شده: + {product.variant.themeValue.name} +
+ )}
-
گارانتی: {product.variant.warranty.name}
+
گارانتی: {product.variant.warranty?.name || 'ندارد'}
تعداد: {product.quantity}
قیمت واحد: {formatPrice(product.selling_price)} تومان
+ {product.shipmentCost > 0 && ( +
هزینه ارسال: {formatPrice(product.shipmentCost)} تومان
+ )}
diff --git a/src/pages/orders/types/Types.ts b/src/pages/orders/types/Types.ts index 8ef2430..4216a02 100644 --- a/src/pages/orders/types/Types.ts +++ b/src/pages/orders/types/Types.ts @@ -136,7 +136,9 @@ export type VariantType = { isWholeSale: boolean; shop: ShopType; warranty: WarrantyType; - meterage: MeterageType; + saleFormat: SaleFormatType; + themeValue: ThemeValueType; + meterage?: MeterageType; }; export type PriceType = { @@ -154,6 +156,13 @@ export type SaleFormatType = { wholeSale: unknown[]; }; +export type ThemeValueType = { + _id: string; + theme: string; + name: string; + value: number; +}; + export type ShopType = { _id: string; shopName?: string;