ADO.NET Provider for QuickBooks

Build 24.0.8964

PurchaseOrderLineItems

Create, update, delete, and query QuickBooks Purchase Order Line Items.

Table Specific Information

PurchaseOrders may be inserted, queried, or updated via the PurchaseOrders or PurchaseOrderLineItems tables. PurchaseOrders may be deleted by using the PurchaseOrders table.

This table has a Custom Fields column. See the Custom Fields page for more information.

Select

By default, SupportEnhancedSQL is set to true, and the following will be honored if present. Other filters will be executed client side. If SupportEnhancedSQL is set to false, only the following filters will be honored.

QuickBooks allows only a small subset of columns to be used in the WHERE clause of a SELECT query. These columns can typically be used with only the equals or = comparison. The available columns for PurchaseOrders are Id, Date, TimeModified, ReferenceNumber, VendorName, and VendorId. TimeModified and Date may be used with the >, >=, <, <=, or = conditions and may be used twice to specify a range. ReferenceNumber may be used with the = or LIKE conditions to establish a starts-with, ends-with, or contains syntax. For example:

SELECT * FROM PurchaseOrderLineItems WHERE TimeModified > '1/1/2011' AND TimeModified < '2/1/2011' AND ReferenceNumber LIKE '%12345%'

Insert

To add a PurchaseOrder, specify the Vendor and at least one Line Item. All Line Item columns and can be used for inserting multiple Line Items for a new PurchaseOrder transaction. For example, the following will insert a new PurchaseOrder with two Line Items:

INSERT INTO PurchaseOrderLineItems#TEMP (VendorName, ItemName, ItemQuantity) VALUES ('A Cheung Limited', 'Repairs', 1)
INSERT INTO PurchaseOrderLineItems#TEMP (VendorName, ItemName, ItemQuantity) VALUES ('A Cheung Limited', 'Removal', 2)
INSERT INTO PurchaseOrderLineItems (VendorName, ItemName, ItemQuantity) SELECT VendorName, ItemName, ItemQuantity FROM PurchaseOrderLineItems#TEMP

Columns

Name Type ReadOnly References ColumnSize Description
ID [KEY] String True 255

The unique identifier in the format PurchaseOrderId|ItemLineId.

PurchaseOrderID String False

PurchaseOrders.ID

255

The unique identifier of the purchase order.

VendorName String False 1000

Vendor name this purchase order is issued to. Either VendorName or VendorId must have a value when inserting.

VendorId String False

Vendors.ID

255

Vendor Id this purchase order is issued to. Either VendorName or VendorId must have a value when inserting.

VendorMessage String False 99

Message to appear to vendor.

ReferenceNumber String False 21

The transaction reference number.

TxnNumber Integer True

The transaction number. An identifying number for the transaction, different from the QuickBooks-generated Id.

Date Date False

Transaction date. If it is set in the WHERE clause of a SELECT query, the pseudo columns StartDate and EndDate are overwritten with the value.

DueDate Date False

Date when payment is due.

ShipMethod String False 1000

Shipping method.

ShipMethodId String False

ShippingMethods.ID

255

Shipping method.

ExpectedDate Date False

Date when the shipment is expected.

Memo String False 5000

Memo regarding this transaction.

Class String False 1000

A reference to the class of the transaction.

ClassId String False

Class.ID

255

A reference to the class of the transaction.

Terms String False 100

Payment terms.

TermsId String False 255

Payment terms.

TotalAmount Decimal True

Total amount for this purchase order.

Template String False 100

The name of an existing template to apply to the transaction.

TemplateId String False

Templates.ID

255

The Id of an existing template to apply to the transaction.

CurrencyName String False 64

Name of the currency code used for this purchase order. QBXML version must be set to 8.0 or higher to use this field.

CurrencyId String False

Currency.ID

255

Id of the currency code used for this purchaseorder. QBXML version must be set to 8.0 or higher to use this field.

CustomFields String False

Custom fields returned from QuickBooks and formatted into XML.

ItemLineId String True 255

The line item identifier.

ItemLineNumber String True 255

The line item number.

ItemName String False

The item name.

ItemId String False

Items.ID

255

The item identifier.

ItemGroup String False 100

Item group name. Reference to a group of line items this item is part of.

ItemGroupId String False

Items.ID

255

Item group Id. Reference to a group of line items this item is part of.

ItemDescription String False 5000

A description of the item.

ItemCustomer String False 1000

A reference to a customer for whom this item was ordered. This may also be a customer job.

ItemCustomerId String False

Customers.ID

255

A reference to a customer for whom this item was ordered. This may also be a customer job.

ItemUnitOfMeasure String False 31

In a transaction line item, the name of the unit of measure is selected from within the item's available units. If the company file is enabled only for single unit of measure per item, this must be the base unit. Only available in QBXML version 7.0 and above.

ItemQuantity Double False

The quantity of the item or item group specified in this line.

ItemRate Double False

The unit rate charged for this item.

ItemAmount Decimal False

Total amount for this item.

ItemReceivedQuantity Double False

The quantity of items that have been received against this purchase order.

ItemClass String False 1000

The class name of the item.

ItemClassId String False

Class.ID

255

The class name of the item.

ItemInventorySiteLocationId String False 31

The inventory site location Id of this item. This requires QBXML version at least 10.0 and the Advanced Inventory add-on.

ItemInventorySiteLocationName String False 255

The inventory site location name of this item. This requires QBXML version at least 10.0 and the Advanced Inventory add-on.

ItemIsManuallyClosed String False 10

Whether or not the item is manually closed.

ItemPartNumber String False

The part number used by the manufacturer of the item.

ItemServiceDate Date False

The date of the Service

ItemOther1 String False 29

The Other1 field of this line item. QBXML version must be set to 6.0 or higher to use this field.

ItemOther2 String False 29

The Other2 field of this line item. QBXML version must be set to 6.0 or higher to use this field.

ItemCustomFields String False

The custom fields for this line item.

IsFullyReceived Boolean True

If IsFullyReceived is true, all the items in the purchase order have been received and none were closed manually.

IsManuallyClosed String False 10

Whether or not the purchase order is closed.

IsToBePrinted Boolean False

Whether this transaction is to be printed.

IsToBeEmailed Boolean False

Indicates whether the transaction is to be emailed.

IsTaxIncluded Boolean False

Indicates whether the dollar amounts in the line items include tax or not.

SalesTaxCodeName String False 3

The type of sales tax that will be charged for this purchase order.

SalesTaxCodeId String False

SalesTaxCodes.ID

255

The type of sales tax that will be charged for this purchase order.

FOB String False 1000

Freight on board: The place to ship from.

VendorAddress String True

Full vendor address returned by QuickBooks.

VendorLine1 String False 500

First line of the vendor address.

VendorLine2 String False 500

Second line of the vendor address.

VendorLine3 String False 500

Third line of the vendor address.

VendorLine4 String False 500

Forth line of the vendor address.

VendorLine5 String False 41

Fifth line of the vendor address.

VendorCity String False 255

City name for the vendor address of the vendor.

VendorState String False 255

State name for the vendor address of the vendor.

VendorPostalCode String False 30

Postal code for the vendor address of the vendor.

VendorCountry String False 255

Country for the vendor address of the vendor.

VendorNote String False 41

Note for the vendor address of the vendor.

ShipToEntityId String False 255

A reference to an entity (a customer, a vendor or an employee) to whom shipment is to be made. This may also be a customer job.

ShipToEntityName String False 1000

A reference to an entity (a customer, a vendor or an employee) to whom shipment is to be made. This may also be a customer job.

ShippingAddress String True

Full shipping address returned by QuickBooks.

ShippingLine1 String False 500

First line of the shipping address.

ShippingLine2 String False 500

Second line of the shipping address.

ShippingLine3 String False 500

Third line of the shipping address.

ShippingLine4 String False 500

Fourth line of the shipping address.

ShippingLine5 String False 41

Fifth line of the shipping address.

ShippingCity String False 255

City name for the shipping address.

ShippingState String False 255

State name for the shipping address.

ShippingPostalCode String False 30

Postal code for the shipping address.

ShippingCountry String False 255

Country for the shipping address.

ShippingNote String False 41

Note for the shipping address.

ExchangeRate Double False

Indicates the exchange rate for the transaction.

Other1 String False 25

Predefined QuickBooks custom field.

Other2 String False 29

Predefined QuickBooks custom field.

EditSequence String True 16

An identifier used for versioning for this copy of the object.

TimeModified Datetime True

When the purchase order was last modified.

TimeCreated Datetime True

When the purchase order was created.

Pseudo-Columns

Pseudo Column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ItemPriceLevel String

Item price level name. QuickBooks will not return the price level.

ItemOverrideAccount String

The Account Name used to override the default Account for the Item. This is only available during inserts and updates.

ItemOverrideAccountId String

The Account Id used to override the default Account for the Item. This is only available during inserts and updates.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.8964