OBJECT

PurchaseOrderItem

A line item on a purchase order.

link GraphQL Schema definition

  • type PurchaseOrderItem implements NoteableInterface, CustomfielddataableInterface, LoggableInterface, AccessloggableInterface {
  • # The ID of the entity.
  • id: Int64Bit!
  • # An ID that uniquely identifies this entity across the whole Sonar system.
  • sonar_unique_id: ID!
  • # The date and time this entity was created.
  • created_at: Datetime!
  • # The last date and time this entity was modified.
  • updated_at: Datetime!
  • # A string that shows the version of this entity. It will be incremented whenever
  • # the entity is modified.
  • _version: String!
  • # The tax transaction that was created for this purchase order item the last time
  • # it was modified.
  • calculated_tax: Int
  • # The quantity of a generic purchase order item that has already been received.
  • generic_quantity_received: Int!
  • # The order this item is shown in a list.
  • list_order: Int
  • # A descriptive name.
  • name: String
  • # Part number used by the vendor to identify this vendor item.
  • part_number: String
  • # The price of the vendor item at the time the purchase order was created.
  • price: Int64Bit!
  • # The ID of a purchase order.
  • purchase_order_id: Int64Bit!
  • # Number of inventory models that are included in a single unit of this vendors
  • # product.
  • quantity_per_unit: Int
  • # The current status of a purchase order item.
  • status: PurchaseOrderItemStatus!
  • # The quantity of a vendor item on a purchase order.
  • units: Int!
  • # The ID of a vendor item.
  • vendor_item_id: Int64Bit!
  • # A purchase order for items from a third party vendor.
  • #
  • # Arguments
  • # id: The ID of the entity.
  • # sonar_unique_id: An ID that uniquely identifies this entity
  • # across the whole Sonar system.
  • # created_at: The date and time this entity was created.
  • # updated_at: The last date and time this entity was modified.
  • # _version: A string that shows the version of this entity. It
  • # will be incremented whenever the entity is modified.
  • # approved_by_user_id: The ID of the user that approved this
  • # purchase order.
  • # canceled_at: The date/time that this purchase order was
  • # cancelled.
  • # canceled_by_user_id: The ID of the user that cancelled this
  • # purchase order.
  • # company_id: The ID of the company that will be used in the
  • # header of this purchase order.
  • # created_by_user_id: The ID of the user that created this
  • # purchase order.
  • # currency: The currency the system displays money in.
  • # external_message: A message to be included on purchase orders
  • # when sent to vendors.
  • # inventory_location_id: The source of the shipping address for a
  • # purchase order.
  • # is_paid: Whether or not the purchase order has been marked as
  • # being paid.
  • # last_status_change: The date and time that the inventory item
  • # status last changed.
  • # order_group_id: The ID of an order group related to this
  • # purchase order.
  • # order_number: A unique number identifying an approved purchase
  • # order.
  • # payment_terms: The terms of payment for deliveries from this
  • # vendor.
  • # status: The current status of this purchase order.
  • # vendor_id: The ID of a vendor.
  • # vendor_name: The name of a vendor.
  • # paginator: Provides the ability to paginate through results.
  • # sorter: Provides the ability to sort results.
  • # search: Complex search parameters.
  • # general_search: Search across all string fields with partial
  • # matching.
  • # aggregation: Provides the ability to return aggregated
  • # mathematical data about your results.
  • # reverse_relation_filters: Reverse relation filters allow you to
  • # filter the result of a relation, and use that filter to affect the returned root
  • # elements.
  • purchase_order(
  • id: Int64Bit,
  • sonar_unique_id: ID,
  • created_at: Datetime,
  • updated_at: Datetime,
  • _version: String,
  • approved_by_user_id: Int64Bit,
  • canceled_at: Datetime,
  • canceled_by_user_id: Int64Bit,
  • company_id: Int64Bit,
  • created_by_user_id: Int64Bit,
  • currency: Currency,
  • external_message: String,
  • inventory_location_id: Int64Bit,
  • is_paid: Boolean,
  • last_status_change: Datetime,
  • order_group_id: Int64Bit,
  • order_number: Int,
  • payment_terms: PaymentTerm,
  • status: PurchaseOrderStatus,
  • vendor_id: Int64Bit,
  • vendor_name: String,
  • paginator: Paginator,
  • sorter: [Sorter],
  • search: [Search],
  • general_search: String,
  • aggregation: [Aggregator],
  • reverse_relation_filters: [ReverseRelationFilter]
  • ): PurchaseOrder
  • # An item that can be purchased from a particular vendor.
  • #
  • # Arguments
  • # id: The ID of the entity.
  • # sonar_unique_id: An ID that uniquely identifies this entity
  • # across the whole Sonar system.
  • # created_at: The date and time this entity was created.
  • # updated_at: The last date and time this entity was modified.
  • # _version: A string that shows the version of this entity. It
  • # will be incremented whenever the entity is modified.
  • # archived: Archived vendor items may not be used for creating
  • # new purchase orders or product requests.
  • # name: A descriptive name.
  • # part_number: Part number used by the vendor to identify this
  • # vendor item.
  • # price: The purchase price of this item from the vendor.
  • # quantity_per_unit: Number of inventory models that are included
  • # in a single unit of this vendors product.
  • # retail_item: Flag for vendor items that should create a
  • # one-time service for retail sale to customers.
  • # retail_item_price: The price of the one-time service created
  • # for this vendor item
  • # retail_item_service_id: The ID of the one-time service created
  • # when this vendor item was created.
  • # vendor_id: The ID of the vendor that sells this item
  • # vendoritemable_id: The ID of the entity that is referred to by
  • # this vendor item.
  • # vendoritemable_type: The type of entity that is referred to by
  • # this vendor item.
  • # paginator: Provides the ability to paginate through results.
  • # sorter: Provides the ability to sort results.
  • # search: Complex search parameters.
  • # general_search: Search across all string fields with partial
  • # matching.
  • # aggregation: Provides the ability to return aggregated
  • # mathematical data about your results.
  • # reverse_relation_filters: Reverse relation filters allow you to
  • # filter the result of a relation, and use that filter to affect the returned root
  • # elements.
  • vendor_item(
  • id: Int64Bit,
  • sonar_unique_id: ID,
  • created_at: Datetime,
  • updated_at: Datetime,
  • _version: String,
  • archived: Boolean,
  • name: String,
  • part_number: String,
  • price: Int,
  • quantity_per_unit: Int,
  • retail_item: Boolean,
  • retail_item_price: Int,
  • retail_item_service_id: Int64Bit,
  • vendor_id: Int64Bit,
  • vendoritemable_id: Int64Bit,
  • vendoritemable_type: VendoritemableType,
  • paginator: Paginator,
  • sorter: [Sorter],
  • search: [Search],
  • general_search: String,
  • aggregation: [Aggregator],
  • reverse_relation_filters: [ReverseRelationFilter]
  • ): VendorItem
  • # An inventory item.
  • #
  • # Arguments
  • # id: The ID of the entity.
  • # sonar_unique_id: An ID that uniquely identifies this entity
  • # across the whole Sonar system.
  • # created_at: The date and time this entity was created.
  • # updated_at: The last date and time this entity was modified.
  • # _version: A string that shows the version of this entity. It
  • # will be incremented whenever the entity is modified.
  • # claimed_user_id: The ID of the `User` that claimed this.
  • # deployment_type_id: The ID of a `DeploymentType`.
  • # flapping: Whether this inventory item is flapping or not.
  • # icmp_device_status: The current ICMP monitoring status of an
  • # `InventoryItem`.
  • # icmp_status_flap_count: The number of times the ICMP status has
  • # flapped.
  • # icmp_status_last_change: The timestamp of when the ICMP status
  • # last changed.
  • # icmp_threshold_violation: The ICMP monitoring threshold
  • # violation type.
  • # inventory_model_id: The ID of an `InventoryModel`.
  • # inventoryitemable_id: The ID of the entity that this inventory
  • # item is assigned to.
  • # inventoryitemable_type: The type of entity that this inventory
  • # item is assigned to.
  • # latitude: A decimal latitude.
  • # longitude: A decimal longitude.
  • # metadata: The metadata.
  • # overall_status: The overall status of an `InventoryItem` (the
  • # worse of ICMP/SNMP status).
  • # parent_inventory_item_id: The ID of the parent `InventoryItem`.
  • # preseem_status: The status of the device, as read from Preseem.
  • # purchase_order_item_id: The ID of a purchase order item
  • # purchase_price: The purchase price of this item.
  • # snmp_device_status: The current SNMP monitoring status of an
  • # `InventoryItem`.
  • # snmp_status_flap_count: The number of times the SNMP status has
  • # flapped.
  • # snmp_status_last_change: The timestamp of when the SNMP status
  • # last changed.
  • # snmp_status_message: The SNMP monitoring status message.
  • # status: The physical status of this item.
  • # paginator: Provides the ability to paginate through results.
  • # sorter: Provides the ability to sort results.
  • # search: Complex search parameters.
  • # general_search: Search across all string fields with partial
  • # matching.
  • # aggregation: Provides the ability to return aggregated
  • # mathematical data about your results.
  • # reverse_relation_filters: Reverse relation filters allow you to
  • # filter the result of a relation, and use that filter to affect the returned root
  • # elements.
  • inventory_items(
  • id: Int64Bit,
  • sonar_unique_id: ID,
  • created_at: Datetime,
  • updated_at: Datetime,
  • _version: String,
  • claimed_user_id: Int64Bit,
  • deployment_type_id: Int64Bit,
  • flapping: Boolean,
  • icmp_device_status: InventoryItemDeviceStatus,
  • icmp_status_flap_count: Int,
  • icmp_status_last_change: Datetime,
  • icmp_threshold_violation: InventoryItemIcmpThresholdViolation,
  • inventory_model_id: Int64Bit,
  • inventoryitemable_id: Int64Bit,
  • inventoryitemable_type: InventoryitemableType,
  • latitude: Latitude,
  • longitude: Longitude,
  • metadata: String,
  • overall_status: InventoryItemDeviceStatus,
  • parent_inventory_item_id: Int64Bit,
  • preseem_status: PreseemStatus,
  • purchase_order_item_id: Int64Bit,
  • purchase_price: Int,
  • snmp_device_status: InventoryItemDeviceStatus,
  • snmp_status_flap_count: Int,
  • snmp_status_last_change: Datetime,
  • snmp_status_message: String,
  • status: InventoryItemStatus,
  • paginator: Paginator,
  • sorter: [Sorter],
  • search: [Search],
  • general_search: String,
  • aggregation: [Aggregator],
  • reverse_relation_filters: [ReverseRelationFilter]
  • ): InventoryItemConnection!
  • # A tax.
  • #
  • # Arguments
  • # id: The ID of the entity.
  • # sonar_unique_id: An ID that uniquely identifies this entity
  • # across the whole Sonar system.
  • # created_at: The date and time this entity was created.
  • # updated_at: The last date and time this entity was modified.
  • # _version: A string that shows the version of this entity. It
  • # will be incremented whenever the entity is modified.
  • # application: Whether this `Tax` is applied as a percentage of
  • # the `Service` charge, or as a flat rate.
  • # name: A descriptive name.
  • # rate: The rate for a tax. For a percentage based tax, this is a
  • # percentage. For a flat tax, it is a currency value in the smallest currency unit
  • # (e.g. cents, pence, pesos.)
  • # type: Whether this tax is applied based on the account being in
  • # a specific geography, or whether it is applied to all accounts.
  • # paginator: Provides the ability to paginate through results.
  • # sorter: Provides the ability to sort results.
  • # search: Complex search parameters.
  • # general_search: Search across all string fields with partial
  • # matching.
  • # aggregation: Provides the ability to return aggregated
  • # mathematical data about your results.
  • # reverse_relation_filters: Reverse relation filters allow you to
  • # filter the result of a relation, and use that filter to affect the returned root
  • # elements.
  • taxes(
  • id: Int64Bit,
  • sonar_unique_id: ID,
  • created_at: Datetime,
  • updated_at: Datetime,
  • _version: String,
  • application: TaxApplication,
  • name: String,
  • rate: Float,
  • type: TaxType,
  • paginator: Paginator,
  • sorter: [Sorter],
  • search: [Search],
  • general_search: String,
  • aggregation: [Aggregator],
  • reverse_relation_filters: [ReverseRelationFilter]
  • ): TaxConnection!
  • # A note.
  • #
  • # Arguments
  • # id: The ID of the entity.
  • # sonar_unique_id: An ID that uniquely identifies this entity
  • # across the whole Sonar system.
  • # created_at: The date and time this entity was created.
  • # updated_at: The last date and time this entity was modified.
  • # _version: A string that shows the version of this entity. It
  • # will be incremented whenever the entity is modified.
  • # message: The message.
  • # noteable_id: The ID of the entity that owns this note.
  • # noteable_type: The type of entity that owns this note.
  • # priority: The priority of this item.
  • # user_id: The ID of a User.
  • # paginator: Provides the ability to paginate through results.
  • # sorter: Provides the ability to sort results.
  • # search: Complex search parameters.
  • # general_search: Search across all string fields with partial
  • # matching.
  • # aggregation: Provides the ability to return aggregated
  • # mathematical data about your results.
  • # reverse_relation_filters: Reverse relation filters allow you to
  • # filter the result of a relation, and use that filter to affect the returned root
  • # elements.
  • notes(
  • id: Int64Bit,
  • sonar_unique_id: ID,
  • created_at: Datetime,
  • updated_at: Datetime,
  • _version: String,
  • message: Text,
  • noteable_id: Int64Bit,
  • noteable_type: NoteableType,
  • priority: NotePriority,
  • user_id: Int64Bit,
  • paginator: Paginator,
  • sorter: [Sorter],
  • search: [Search],
  • general_search: String,
  • aggregation: [Aggregator],
  • reverse_relation_filters: [ReverseRelationFilter]
  • ): NoteConnection!
  • # Data entered into a `CustomField`.
  • #
  • # Arguments
  • # id: The ID of the entity.
  • # sonar_unique_id: An ID that uniquely identifies this entity
  • # across the whole Sonar system.
  • # created_at: The date and time this entity was created.
  • # updated_at: The last date and time this entity was modified.
  • # _version: A string that shows the version of this entity. It
  • # will be incremented whenever the entity is modified.
  • # custom_field_id: The ID of a CustomField that is associated
  • # with this type of entity.
  • # customfielddataable_id: The ID of the entity that owns this
  • # custom field data.
  • # customfielddataable_type: The type of entity that owns this
  • # custom field data.
  • # value: The value.
  • # paginator: Provides the ability to paginate through results.
  • # sorter: Provides the ability to sort results.
  • # search: Complex search parameters.
  • # general_search: Search across all string fields with partial
  • # matching.
  • # aggregation: Provides the ability to return aggregated
  • # mathematical data about your results.
  • # reverse_relation_filters: Reverse relation filters allow you to
  • # filter the result of a relation, and use that filter to affect the returned root
  • # elements.
  • custom_field_data(
  • id: Int64Bit,
  • sonar_unique_id: ID,
  • created_at: Datetime,
  • updated_at: Datetime,
  • _version: String,
  • custom_field_id: Int64Bit,
  • customfielddataable_id: Int64Bit,
  • customfielddataable_type: CustomfielddataableType,
  • value: String,
  • paginator: Paginator,
  • sorter: [Sorter],
  • search: [Search],
  • general_search: String,
  • aggregation: [Aggregator],
  • reverse_relation_filters: [ReverseRelationFilter]
  • ): CustomFieldDataConnection!
  • # A log entry.
  • #
  • # Arguments
  • # id: The ID of the entity.
  • # sonar_unique_id: An ID that uniquely identifies this entity
  • # across the whole Sonar system.
  • # created_at: The date and time this entity was created.
  • # updated_at: The last date and time this entity was modified.
  • # _version: A string that shows the version of this entity. It
  • # will be incremented whenever the entity is modified.
  • # current: Current data.
  • # legacy: Whether or not this log was transferred from a Sonar v1
  • # instance. If so, the formatting will not match current version logs.
  • # legacy_title: A title which is only populated on logs that were
  • # imported from Sonar v1.
  • # level: The severity level.
  • # loggable_id: The ID of the entity that this log is attached to.
  • # loggable_type: The type of entity that this log is attached to.
  • # logged_entity_id: The entity ID that triggered the log.
  • # logged_entity_type: The entity that triggered the log.
  • # message: The message.
  • # previous: Previous data.
  • # relation_data: Data from objects related to this change.
  • # type: The type.
  • # user_id: The ID of a User.
  • # paginator: Provides the ability to paginate through results.
  • # sorter: Provides the ability to sort results.
  • # search: Complex search parameters.
  • # general_search: Search across all string fields with partial
  • # matching.
  • # aggregation: Provides the ability to return aggregated
  • # mathematical data about your results.
  • # reverse_relation_filters: Reverse relation filters allow you to
  • # filter the result of a relation, and use that filter to affect the returned root
  • # elements.
  • logs(
  • id: Int64Bit,
  • sonar_unique_id: ID,
  • created_at: Datetime,
  • updated_at: Datetime,
  • _version: String,
  • current: Text,
  • legacy: Boolean,
  • legacy_title: String,
  • level: LogLevel,
  • loggable_id: Int64Bit,
  • loggable_type: String,
  • logged_entity_id: Int64Bit,
  • logged_entity_type: String,
  • message: Text,
  • previous: Text,
  • relation_data: Text,
  • type: LogType,
  • user_id: Int64Bit,
  • paginator: Paginator,
  • sorter: [Sorter],
  • search: [Search],
  • general_search: String,
  • aggregation: [Aggregator],
  • reverse_relation_filters: [ReverseRelationFilter]
  • ): LogConnection!
  • # An access log history on an entity.
  • #
  • # Arguments
  • # id: The ID of the entity.
  • # sonar_unique_id: An ID that uniquely identifies this entity
  • # across the whole Sonar system.
  • # created_at: The date and time this entity was created.
  • # updated_at: The last date and time this entity was modified.
  • # _version: A string that shows the version of this entity. It
  • # will be incremented whenever the entity is modified.
  • # access_datetime: The date and time that this entity was
  • # accessed.
  • # accessloggable_id: The ID of the entity that this access log
  • # belongs to.
  • # accessloggable_type: The entity that this access log belongs
  • # to.
  • # entity_id: The ID of the entity that this access log belongs
  • # to.
  • # entity_name: The entity that this access log belongs to.
  • # user_id: The ID of the user that accessed this entity.
  • # paginator: Provides the ability to paginate through results.
  • # sorter: Provides the ability to sort results.
  • # search: Complex search parameters.
  • # general_search: Search across all string fields with partial
  • # matching.
  • # aggregation: Provides the ability to return aggregated
  • # mathematical data about your results.
  • # reverse_relation_filters: Reverse relation filters allow you to
  • # filter the result of a relation, and use that filter to affect the returned root
  • # elements.
  • access_logs(
  • id: Int64Bit,
  • sonar_unique_id: ID,
  • created_at: Datetime,
  • updated_at: Datetime,
  • _version: String,
  • access_datetime: Datetime,
  • accessloggable_id: Int64Bit,
  • accessloggable_type: String,
  • entity_id: Int64Bit,
  • entity_name: String,
  • user_id: Int64Bit,
  • paginator: Paginator,
  • sorter: [Sorter],
  • search: [Search],
  • general_search: String,
  • aggregation: [Aggregator],
  • reverse_relation_filters: [ReverseRelationFilter]
  • ): AccessLogConnection!
  • }