This commit is contained in:
Bivekich
2025-07-30 20:24:41 +03:00
parent 593ae16e1e
commit 4147d85b36
7 changed files with 35 additions and 8 deletions

View File

@ -949,6 +949,12 @@ export const GET_SUPPLY_ORDERS = gql`
fullName
type
}
logisticsPartner {
id
name
fullName
type
}
items {
id
quantity

View File

@ -924,6 +924,7 @@ export const resolvers = {
users: true,
},
},
logisticsPartner: true,
items: {
include: {
product: {

View File

@ -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 # Дополнительные заметки к заказу
}