ItemReceiptLineItems
Manages individual line items within QuickBooks Item Receipts, supporting creation, updates, deletion, and queries for purchase tracking.
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 |
A unique identifier for the line item, formatted as ItemReceiptId|ItemLineId. | |
ItemReceiptId | String | False |
ItemReceipts.ID | 255 |
The unique identifier for the item receipt, sourced from the ItemReceipt table. |
VendorName | String | False | 1000 |
The name of the vendor associated with the item receipt. Either VendorName or VendorId must be provided when inserting. | |
VendorId | String | False |
Vendors.ID | 255 |
The unique identifier of the vendor associated with the item receipt. Either VendorName or VendorId must be provided when inserting. |
Date | Date | False |
The date the transaction occurred or was recorded. | ||
ReferenceNumber | String | False | 21 |
A reference number assigned to this transaction for identification. | |
AccountsPayable | String | False | 1000 |
The name of the accounts payable account associated with the item receipt. | |
AccountsPayableId | String | False |
Accounts.ID | 255 |
The unique identifier of the accounts payable account associated with the item receipt. |
Memo | String | False | 5000 |
An optional note or memo describing the item receipt. | |
Amount | Decimal | True |
The total monetary value of the item receipt. | ||
TxnNumber | Integer | True |
A unique transaction number assigned to differentiate this transaction from others, apart from the Quickbooks generated ID. | ||
ExchangeRate | Double | False |
The exchange rate used to convert this transaction's currency to the home currency of the QuickBooks file. Requires QBXML Version 8.0 or higher. | ||
IsTaxIncluded | Boolean | False |
Indicates whether the transaction amount includes tax. This feature is available only in international editions of QuickBooks. | ||
ItemLineId | String | True | 255 |
A unique identifier for this specific line item. | |
ItemLineNumber | String | True | 255 |
The sequential number of this line item within the item receipt. | |
ItemName | String | False |
The name of the item associated with this line. | ||
ItemId | String | False |
Items.ID | 255 |
The unique identifier of the item associated with this line. |
ItemGroup | String | False | 100 |
The name of the item group this line belongs to, if applicable. | |
ItemGroupId | String | False |
Items.ID | 255 |
The unique identifier of the item group this line belongs to, if applicable. |
ItemDescription | String | False | 5000 |
A brief description of the item associated with this line. | |
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 applied to this line item. Available only in QuickBooks UK and Canada editions. | |
ItemTaxCodeId | String | False | 255 |
The unique identifier of the sales tax code applied to this line item. Available only in QuickBooks UK and Canada editions. | |
ItemUnitOfMeasure | String | False | 31 |
The unit of measure for this line item, selected from the item's available units. Only available in QBXML Version 7.0 and above. | |
ItemInventorySiteId | String | False | 255 |
The unique identifier of the inventory site associated with this item. Requires QBXML Version 10.0 or higher and the Advanced Inventory add-on. | |
ItemInventorySiteName | String | False | 31 |
The name of the inventory site associated with this item. Requires QBXML Version 10.0 or higher and the Advanced Inventory add-on. | |
ItemInventorySiteLocationId | String | False | 255 |
The unique identifier of the inventory site location associated with this item. Requires QBXML Version 12.0 or higher. | |
ItemInventorySiteLocationName | String | False |
The name of the inventory site location associated with this item. Requires QBXML Version 12.0 or higher. | ||
ItemSerialNumber | String | False | 255 |
The serial number of this item. Requires QBXML Version 11.0 or higher and the Advanced Inventory add-on. | |
ItemLotNumber | String | False | 40 |
The lot number of this item. Requires QBXML Version 11.0 or higher and the Advanced Inventory add-on. | |
ItemExpirationDateForSerialLotNumber | String | True | 1099 |
The expiration date for the serial lot number of this item. Available starting from QB Desktop 2023 (USA & Canada) and SDK 16.0. | |
ItemCost | Double | False |
The unit cost for this item. | ||
ItemAmount | Decimal | False |
The total amount for this line item. | ||
ItemBillableStatus | String | False | 13 |
The billing status of this line item, indicating whether it is billable, non-billable, or has already been billed. 使用できる値は次のとおりです。EMPTY, BILLABLE, NOTBILLABLE, HASBEENBILLED デフォルト値はEMPTYです。 | |
ItemCustomer | String | False | 1000 |
The name of the customer linked to this line item, if applicable. | |
ItemCustomerId | String | False |
Customers.ID | 255 |
The unique identifier of the customer linked to this line item, if applicable. |
ItemClass | String | False | 1000 |
The name of the class assigned to this item. | |
ItemClassId | String | False |
Class.ID | 255 |
The unique identifier of the class assigned to this item. |
ItemCustomFields | String | False |
Custom fields specific to this line item, formatted as XML. | ||
CustomFields | String | False |
Custom fields related to the item receipt, formatted as XML. | ||
EditSequence | String | True | 16 |
An identifier used for version control of this object in QuickBooks. | |
TimeModified | Datetime | True |
The date and time when the item receipt was last updated. | ||
TimeCreated | Datetime | True |
The date and time when the item receipt was initially 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 unique identifier of a transaction (such as a purchase order) to which the new item receipt is linked. Available only during insertion. |
ItemLinkToTxnId | String |
Links this individual line item to another transaction. Available only during insertion and requires QBXML Version 6.0 or higher. |
ItemLinkToTxnLineId | String |
Links this individual line item to a specific line item in another transaction. Available only during insertion and requires QBXML Version 6.0 or higher. |
ItemOverrideAccount | String |
Specifies the account name used to override the default account for this item. Available only during insertion and updates. |
ItemOverrideAccountId | String |
Specifies the account ID used to override the default account for this item. Available only during insertion and updates. |