ODBC Driver for QuickBooks

Build 24.0.9062

ItemReceiptLineItems

Create, update, delete, and query QuickBooks Item Receipt Line Items.

Table Specific Information

ItemReceipts may be inserted, queried, or updated via the ItemReceipts, ItemReceiptExpenseItems, or ItemReceiptLineItems tables. ItemReceipts may be deleted by using the ItemReceipts 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. Typically, These columns can typically be used with only the equals or = comparison. The available columns for ItemReceipts are Id, Date, ReferenceNumber, VendorName, VendorId, Payee, PayeeId, Account, AccountId, and TimeModified. TimeModified and Date may be used with the >, >=, <, <=, or = conditions and may be used twice to specify a range. VendorName and ReferenceNumber may be used with the = or LIKE conditions to establish a starts-with, ends-with, or contains syntax. For example:

SELECT * FROM ItemReceipts WHERE TimeModified > '1/1/2011' AND TimeModified < '2/1/2011' AND VendorName LIKE '%Patton Hardware Supplies%' AND ReferenceNumber LIKE '12345%'

Insert

To add an ItemReceipt, specify the Vendor, Date, and at least one Expense or Line Item. To create LineItems, you must insert data in a temporary table called 'LineItems#TEMP'. For example, the following will insert a new ItemReceipt with two Line Items:

INSERT INTO ItemReceiptLineItems#TEMP (VendorName, Date, ItemName, ItemQuantity) VALUES ('Patton Hardware Supplies', '1/1/2011', 'Repairs', 1)
INSERT INTO ItemReceiptLineItems#TEMP (VendorName, Date, ItemName, ItemQuantity) VALUES ('Patton Hardware Supplies', '1/1/2011', 'Removal', 2)
INSERT INTO ItemReceiptLineItems (VendorName, Date, ItemName, ItemQuantity) SELECT FROM VendorName, Date, ItemName, ItemQuantity ItemReceiptLineItems#TEMP

Columns

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

The unique identifier in the format ItemReceiptId|ItemLineId.

ItemReceiptId String False

ItemReceipts.ID

255

The item identifier for the item receipt. This is obtained from the ItemReceipt table.

VendorName String False 1000

The name of the vendor. Either VendorName or VendorId must be specified when inserting an item receipt.

VendorId String False

Vendors.ID

255

The unique Id of the vendor. Either VendorName or VendorId must be specified when inserting an item receipt.

Date Date False

The transaction date.

ReferenceNumber String False 21

The transaction reference number.

AccountsPayable String False 1000

A reference to the name of the account the item receipt is payable to.

AccountsPayableId String False

Accounts.ID

255

A reference to the unique id of the account the item receipt is payable to.

Memo String False 5000

A memo regarding the item receipt.

Amount Decimal True

Total amount of the item receipt.

TxnNumber Integer True

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

ExchangeRate Double False

The market price for which this currency can be exchanged for the currency used by the QuickBooks company file as the home currency. Requires QBXML Version 8.0 or higher.

IsTaxIncluded Boolean False

Determines if tax is included in the transaction amount. Available in only international editions of QuickBooks.

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 Id.

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.

ItemQuantity Double False

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

ItemTaxCode String False 3

The name of the sales tax code for the line item. Only available in UK and CA editions of QuickBooks.

ItemTaxCodeId String False

SalesTaxCodes.ID

255

The Id of the sales tax code for the line item. Only available in UK and CA editions of QuickBooks.

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.

ItemInventorySiteId String False 255

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

ItemInventorySiteName String False

InventorySites.ID

31

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

ItemInventorySiteLocationId String False 255

The site location for this item. This field requires QBXML Version 12.0.

ItemInventorySiteLocationName String False

The site location for this item. This field requires QBXML Version 12.0.

ItemSerialNumber String False 255

The serial number of this item. This requires QBXML version at least 11.0 and the Advanced Inventory add-on.

ItemLotNumber String False 40

The lot number of this item. This requires QBXML version at least 11.0 and the Advanced Inventory add-on.

ItemExpirationDateForSerialLotNumber String True 1099

The expiration date for serial lot number of this item. It is supported from QB Desktop 2023 version 3 (USA & Canada) and SDK 16.0.

ItemCost Double False

The unit cost for an item.

ItemAmount Decimal False

Total amount for this item.

ItemBillableStatus String False 13

Billing status of the item.

使用できる値は次のとおりです。EMPTY, BILLABLE, NOTBILLABLE, HASBEENBILLED

デフォルト値はEMPTYです。

ItemCustomer String False 1000

The name of the customer who ordered the item.

ItemCustomerId String False

Customers.ID

255

The Id of the customer who ordered the item.

ItemClass String False 1000

The name for the class of the item.

ItemClassId String False

Class.ID

255

The Id for the class of the item.

ItemCustomFields String False

The custom fields for this lineitem.

CustomFields String False

Custom fields returned from QuickBooks and formatted into XML.

EditSequence String True 16

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

TimeModified Datetime True

When the item receipt was last modified.

TimeCreated Datetime True

When the item receipt 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
LinkToTxnId String

The Id of a transaction to link the new item receipt to. This should be a purchase order Id. Only available on an insert.

ItemLinkToTxnId String

Link this individual line item to another transaction. This is only available during inserts and requires a minimum QBXML Version 6.0

ItemLinkToTxnLineId String

Link this individual line item to another transaction line item. This is only available during inserts and requires a minimum QBXML Version 6.0

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.9062