Fix order detail routing and loading

This commit is contained in:
Ruslan Bakiev
2026-04-04 13:45:39 +07:00
parent 4fe3f72579
commit 2a5e38f488
6 changed files with 98 additions and 13 deletions

View File

@@ -0,0 +1,21 @@
query OrderDetail($id: ID!) {
order(id: $id) {
id
code
kind
status
customerId
deliveryAddress
deliveryTerms
deliveryFee
totalPrice
createdAt
items {
id
productName
quantity
unitPrice
lineTotal
}
}
}

View File

@@ -334,6 +334,7 @@ type Query {
myNotificationHistory(channel: MessengerType!, limit: Int = 50): [NotificationHistoryItem!]!
managerNotificationHistory(userId: ID!, channel: MessengerType!, limit: Int = 50): [NotificationHistoryItem!]!
clientProducts: [Product!]!
order(id: ID!): Order
myOrders: [Order!]!
myCurrentOrders: [Order!]!
managerUsers: [ManagerUser!]!