Edit order pricing inline

This commit is contained in:
Ruslan Bakiev
2026-04-04 11:16:16 +07:00
parent 7dc0f59ffb
commit 8c5e95b730
8 changed files with 245 additions and 18 deletions

View File

@@ -458,9 +458,16 @@ export type Order = {
export type OrderItem = {
__typename?: 'OrderItem';
id: Scalars['ID']['output'];
lineTotal?: Maybe<Scalars['Float']['output']>;
productId?: Maybe<Scalars['ID']['output']>;
productName: Scalars['String']['output'];
quantity: Scalars['Float']['output'];
unitPrice?: Maybe<Scalars['Float']['output']>;
};
export type OrderItemPriceInput = {
itemId: Scalars['ID']['input'];
unitPrice: Scalars['Float']['input'];
};
export enum OrderKind {
@@ -647,8 +654,8 @@ export type RewardWithdrawalRequest = {
export type SetOrderOfferInput = {
deliveryFee: Scalars['Float']['input'];
deliveryTerms: Scalars['String']['input'];
itemPrices: Array<OrderItemPriceInput>;
orderId: Scalars['ID']['input'];
totalPrice: Scalars['Float']['input'];
};
export type SubmitCalculationOrderInput = {
@@ -847,7 +854,7 @@ export type ManagerOrdersQueryVariables = Exact<{
}>;
export type ManagerOrdersQuery = { __typename?: 'Query', managerOrders: Array<{ __typename?: 'Order', id: string, code: string, status: OrderStatus, kind: OrderKind, customerId: string, deliveryAddress?: string | null, deliveryTerms?: string | null, deliveryFee?: number | null, totalPrice?: number | null, createdAt: any, items: Array<{ __typename?: 'OrderItem', id: string, productName: string, quantity: number }> }> };
export type ManagerOrdersQuery = { __typename?: 'Query', managerOrders: Array<{ __typename?: 'Order', id: string, code: string, status: OrderStatus, kind: OrderKind, customerId: string, deliveryAddress?: string | null, deliveryTerms?: string | null, deliveryFee?: number | null, totalPrice?: number | null, createdAt: any, items: Array<{ __typename?: 'OrderItem', id: string, productName: string, quantity: number, unitPrice?: number | null, lineTotal?: number | null }> }> };
export type ManagerUsersDetailQueryVariables = Exact<{ [key: string]: never; }>;
@@ -897,7 +904,7 @@ export type ManagerSetOrderOfferMutationVariables = Exact<{
}>;
export type ManagerSetOrderOfferMutation = { __typename?: 'Mutation', managerSetOrderOffer: { __typename?: 'Order', id: string, code: string, status: OrderStatus, deliveryTerms?: string | null, totalPrice?: number | null } };
export type ManagerSetOrderOfferMutation = { __typename?: 'Mutation', managerSetOrderOffer: { __typename?: 'Order', id: string, code: string, status: OrderStatus, deliveryTerms?: string | null, deliveryFee?: number | null, totalPrice?: number | null, items: Array<{ __typename?: 'OrderItem', id: string, unitPrice?: number | null, lineTotal?: number | null }> } };
export type StartOrderWorkMutationVariables = Exact<{
orderId: Scalars['ID']['input'];
@@ -945,7 +952,7 @@ export type MyCurrentOrdersQuery = { __typename?: 'Query', myCurrentOrders: Arra
export type MyOrdersQueryVariables = Exact<{ [key: string]: never; }>;
export type MyOrdersQuery = { __typename?: 'Query', myOrders: Array<{ __typename?: 'Order', id: string, code: string, kind: OrderKind, status: OrderStatus, deliveryAddress?: string | null, totalPrice?: number | null, deliveryTerms?: string | null, createdAt: any, items: Array<{ __typename?: 'OrderItem', id: string, productName: string, quantity: number }> }> };
export type MyOrdersQuery = { __typename?: 'Query', myOrders: Array<{ __typename?: 'Order', id: string, code: string, kind: OrderKind, status: OrderStatus, deliveryAddress?: string | null, totalPrice?: number | null, deliveryTerms?: string | null, deliveryFee?: number | null, createdAt: any, items: Array<{ __typename?: 'OrderItem', id: string, productName: string, quantity: number, unitPrice?: number | null, lineTotal?: number | null }> }> };
export type SubmitCalculationOrderMutationVariables = Exact<{
input: SubmitCalculationOrderInput;
@@ -1713,6 +1720,8 @@ export const ManagerOrdersDocument = gql`
id
productName
quantity
unitPrice
lineTotal
}
}
}
@@ -2011,7 +2020,13 @@ export const ManagerSetOrderOfferDocument = gql`
code
status
deliveryTerms
deliveryFee
totalPrice
items {
id
unitPrice
lineTotal
}
}
}
`;
@@ -2254,11 +2269,14 @@ export const MyOrdersDocument = gql`
deliveryAddress
totalPrice
deliveryTerms
deliveryFee
createdAt
items {
id
productName
quantity
unitPrice
lineTotal
}
}
}