Skip to main content

Type CompanyOrder

No description

type CompanyOrder {
_id: ObjectId!
company: ObjectId!
order: Order!
details: OrderDetails!
dispatcher: ContactInfo
driverDetails: CostprofilesDriver
vehicleDetails: CostprofilesVehicle
trailerDetails: CostprofilesTrailer
customerDetails: CostprofilesCustomer
subcontractorDetails: CostprofilesSubcontractor
quotexSettings: QuotexSettings
quote: Quote
cost: Float
price: Float
exchangedPrice: Float
currency: OrderCurrency!
bids: [Bid!]!
takeovers: [Takeover!]!
offer: Offer
archived: Boolean!
deleted: Boolean!
createdAt: DateTime!
updatedAt: DateTime!
isConfirmationEmailSent: Boolean
subOrders: [CompanyOrder!]
importOrderFromFileMetadata: ImportOrderFromFileMetadata
createdByAI: Boolean
subOrdersCustomerIds: [ObjectId!]
needsAttention: NeedsAttention
lastChangeRequestStatus: ChangeRequestStatus
events: Events!
template: OrderTemplate
kind: OrderKind!
isEditable: Boolean!
user: ContactInfo
changeRequests: [ChangeRequest!]!
fusedOrder: CompanyOrder
splitFrom: CompanyOrder
assignment: OrderAssignment!
oldAssignment: OldOrderAssignment!
drivenRoute: OrderDrivenRoute
alerts: [Alert!]
}

Fields​

CompanyOrder._id ● ObjectId! non-null scalar​

CompanyOrder.company ● ObjectId! non-null scalar​

CompanyOrder.order ● Order! non-null object​

CompanyOrder.details ● OrderDetails! non-null object​

CompanyOrder.dispatcher ● ContactInfo object​

CompanyOrder.driverDetails ● CostprofilesDriver object​

CompanyOrder.vehicleDetails ● CostprofilesVehicle object​

CompanyOrder.trailerDetails ● CostprofilesTrailer object​

CompanyOrder.customerDetails ● CostprofilesCustomer object​

CompanyOrder.subcontractorDetails ● CostprofilesSubcontractor object​

CompanyOrder.quotexSettings ● QuotexSettings object​

CompanyOrder.quote ● Quote object​

CompanyOrder.cost ● Float scalar​

The total cost of the order, overwrites quote.total

CompanyOrder.price ● Float scalar​

The total price of the order, overwrites details.load.price. This price is always in EUR regardless of the order currency.

CompanyOrder.exchangedPrice ● Float scalar​

The price of the order after currency conversion. For orders with currency different from EUR, this field represents the converted price in the different currency.

CompanyOrder.currency ● OrderCurrency! non-null enum​

The currency of the order. For currencies different from EUR, the foreign currency amount is represented in the exchangedPrice field.

CompanyOrder.bids ● [Bid!]! non-null object​

A list of requested bids

CompanyOrder.takeovers ● [Takeover!]! non-null object​

A list of requested takeovers

CompanyOrder.offer ● Offer object​

CompanyOrder.archived ● Boolean! non-null scalar​

CompanyOrder.deleted ● Boolean! non-null scalar​

CompanyOrder.createdAt ● DateTime! non-null scalar​

CompanyOrder.updatedAt ● DateTime! non-null scalar​

CompanyOrder.isConfirmationEmailSent ● Boolean scalar​

CompanyOrder.subOrders ● [CompanyOrder!] list object​

CompanyOrder.importOrderFromFileMetadata ● ImportOrderFromFileMetadata object​

CompanyOrder.createdByAI ● Boolean scalar​

CompanyOrder.subOrdersCustomerIds ● [ObjectId!] list scalar​

CompanyOrder.needsAttention ● NeedsAttention object​

CompanyOrder.lastChangeRequestStatus ● ChangeRequestStatus enum​

CompanyOrder.events ● Events! non-null object​

CompanyOrder.template ● OrderTemplate object​

CompanyOrder.kind ● OrderKind! non-null enum​

CompanyOrder.isEditable ● Boolean! non-null scalar​

CompanyOrder.user ● ContactInfo object​

Order assigend dispatcher

CompanyOrder.changeRequests ● [ChangeRequest!]! non-null object​

CompanyOrder.fusedOrder ● CompanyOrder object​

Reference to the fused company order that contains this order as a sub-order

CompanyOrder.splitFrom ● CompanyOrder object​

References to the parent companyOrder id of a split order.

CompanyOrder.assignment ● OrderAssignment! non-null object​

CompanyOrder.oldAssignment ● OldOrderAssignment! non-null object​

CompanyOrder.drivenRoute ● OrderDrivenRoute object​

CompanyOrder.alerts ● [Alert!] list object​