Skip to main content

Type OrderTemplate

No description

type OrderTemplate {
_id: ObjectId!
name: String!
note: String
company: ObjectId!
details: OrderTemplateDetails!
customer: CostprofilesCustomer
vehicle: CostprofilesVehicle
trailer: CostprofilesTrailer
driver: CostprofilesDriver
subcontractor: CostprofilesSubcontractor
quotexSettings: QuotexSettings
quote: Quote
cost: Float
price: Float
exchangedPrice: Float
currency: OrderCurrency!
createdOrders: [CompanyOrder!]!
archived: Boolean!
deleted: Boolean!
createdBy: ObjectId!
createdAt: DateTime!
updatedAt: DateTime!
needsAttention: NeedsAttention
}

Fields​

OrderTemplate._id ● ObjectId! non-null scalar​

OrderTemplate.name ● String! non-null scalar​

OrderTemplate.note ● String scalar​

Contains any notes from the dispatcher

OrderTemplate.company ● ObjectId! non-null scalar​

OrderTemplate.details ● OrderTemplateDetails! non-null object​

OrderTemplate.customer ● CostprofilesCustomer object​

OrderTemplate.vehicle ● CostprofilesVehicle object​

OrderTemplate.trailer ● CostprofilesTrailer object​

OrderTemplate.driver ● CostprofilesDriver object​

OrderTemplate.subcontractor ● CostprofilesSubcontractor object​

OrderTemplate.quotexSettings ● QuotexSettings object​

OrderTemplate.quote ● Quote object​

OrderTemplate.cost ● Float scalar​

The total cost of the Template, overwrites quote.total

OrderTemplate.price ● Float scalar​

The total price of the Template, overwrites details.load.price

OrderTemplate.exchangedPrice ● Float scalar​

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

OrderTemplate.currency ● OrderCurrency! non-null enum​

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

OrderTemplate.createdOrders ● [CompanyOrder!]! non-null object​

OrderTemplate.archived ● Boolean! non-null scalar​

OrderTemplate.deleted ● Boolean! non-null scalar​

OrderTemplate.createdBy ● ObjectId! non-null scalar​

OrderTemplate.createdAt ● DateTime! non-null scalar​

OrderTemplate.updatedAt ● DateTime! non-null scalar​

OrderTemplate.needsAttention ● NeedsAttention object​