show data in cards
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
import { Variant } from "pages/orders/types";
|
||||
import { Extra3 } from "utils/types/appTypes";
|
||||
|
||||
export interface OrderDetails {
|
||||
orderItems: OrderItem[];
|
||||
order: Order;
|
||||
@@ -18,7 +15,18 @@ export interface OrderDetails {
|
||||
itemsImagePrefix: string;
|
||||
}
|
||||
|
||||
export interface OrderItem {
|
||||
type OrderVariant = {
|
||||
id: number;
|
||||
price: number;
|
||||
options: string;
|
||||
local_name: string;
|
||||
optionsArray: { id: number; name: string }[];
|
||||
OptionsList: string;
|
||||
extras: any[];
|
||||
};
|
||||
|
||||
export type OrderItem = {
|
||||
type: "OrderItem";
|
||||
id: number;
|
||||
is_loyalty_used: number;
|
||||
no_of_stamps_give: number;
|
||||
@@ -31,16 +39,19 @@ export interface OrderItem {
|
||||
image: string;
|
||||
imageName: string;
|
||||
variantName: string;
|
||||
variantLocalName?: string;
|
||||
variantLocalName: string;
|
||||
extras: any[];
|
||||
descriptionEN: string;
|
||||
descriptionAR: string;
|
||||
itemline: string;
|
||||
itemlineAR: string;
|
||||
itemlineAREN: string;
|
||||
extrasgroups: any[];
|
||||
extrasgroups: string[];
|
||||
extragroupnew: any[];
|
||||
itemComment: string;
|
||||
variant?: Variant;
|
||||
variant: OrderVariant;
|
||||
itemExtras: any[];
|
||||
AvaiilableVariantExtras: Extra3[];
|
||||
AvaiilableVariantExtras: any[];
|
||||
isPrinted: number;
|
||||
category_id: number;
|
||||
pos_order_id: string;
|
||||
@@ -56,7 +67,7 @@ export interface OrderItem {
|
||||
pricing_method: string;
|
||||
is_already_paid: number;
|
||||
hash_item: string;
|
||||
}
|
||||
};
|
||||
|
||||
export interface Order {
|
||||
id: number;
|
||||
@@ -247,5 +258,5 @@ export enum OrderType {
|
||||
ToOffice = "office",
|
||||
Booking = "booking",
|
||||
Pay = "pay",
|
||||
Redeem = "redeem"
|
||||
Redeem = "redeem",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user