fix
This commit is contained in:
@ -949,6 +949,12 @@ export const GET_SUPPLY_ORDERS = gql`
|
||||
fullName
|
||||
type
|
||||
}
|
||||
logisticsPartner {
|
||||
id
|
||||
name
|
||||
fullName
|
||||
type
|
||||
}
|
||||
items {
|
||||
id
|
||||
quantity
|
||||
|
@ -924,6 +924,7 @@ export const resolvers = {
|
||||
users: true,
|
||||
},
|
||||
},
|
||||
logisticsPartner: true,
|
||||
items: {
|
||||
include: {
|
||||
product: {
|
||||
|
@ -576,6 +576,8 @@ export const typeDefs = gql`
|
||||
totalItems: Int!
|
||||
fulfillmentCenterId: ID
|
||||
fulfillmentCenter: Organization
|
||||
logisticsPartnerId: ID!
|
||||
logisticsPartner: Organization!
|
||||
items: [SupplyOrderItem!]!
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
@ -603,7 +605,7 @@ export const typeDefs = gql`
|
||||
partnerId: ID!
|
||||
deliveryDate: DateTime!
|
||||
fulfillmentCenterId: ID # ID фулфилмент-центра для доставки
|
||||
logisticsPartnerId: ID # ID логистической компании
|
||||
logisticsPartnerId: ID! # ID логистической компании (обязательно)
|
||||
items: [SupplyOrderItemInput!]!
|
||||
notes: String # Дополнительные заметки к заказу
|
||||
}
|
||||
|
Reference in New Issue
Block a user