ODBC Driver for QuickBooks

Build 24.0.9175

InventoryAdjustmentLineItems

Manages individual line items within QuickBooks Inventory Adjustments, supporting creation and queries for stock control.

Table Specific Information

InventoryAdjustments may be inserted, queried, or deleted via the InventoryAdjustments or InventoryAdjustmentLineItems tables. InventoryAdjustments may be deleted by using the InventoryAdjustments table.

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 InventoryAdjustments are Id, Date, TimeModified, ReferenceNumber, CustomerName, CustomerId, Account, and AccountId. 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 InventoryAdjustmentLineItems WHERE TimeModified > '1/1/2011' AND TimeModified < '2/1/2011' AND ReferenceNumber LIKE '%12345%'

Insert

To add an InventoryAdjustment, specify an Account and at least one Line Item. To add a Line Item, either the ItemName or ItemId is required, as well as either ItemNewQuantity, ItemNewValue, or ItemQuantityDiff. All Line Item columns can be used for inserting multiple Line Items for a new InventoryAdjustment transaction. For example, the following will insert a new InventoryAdjustment with two Line Items:

INSERT INTO InventoryAdjustmentLineItems#TEMP (Account, ItemName, ItemNewQuantity) VALUES ('Cost of Good Sold', 'Wood Door:Exterior', 100)
INSERT INTO InventoryAdjustmentLineItems#TEMP (Account, ItemName, ItemNewQuantity) VALUES ('Cost of Good Sold', 'Wood Door:Interior', 200)
INSERT INTO InventoryAdjustmentLineItems (Account, ItemName, ItemNewQuantity) SELECT Account, ItemName, ItemNewQuantity FROM InventoryAdjustmentLineItems#TEMP

Columns

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

A unique identifier combining the Inventory Adjustment ID and Item Line ID, formatted as InventoryAdjustmentId|ItemLineId.

InventoryAdjustmentID String True

InventoryAdjustments.ID

255

The unique identifier of the Inventory Adjustment transaction.

ReferenceNumber String False 21

A reference number for the transaction, often used for tracking or identification.

Account String False 1000

The name of the account associated with this inventory adjustment. Either this or AccountId must be provided during insertion.

AccountId String False

Accounts.ID

255

The ID of the account associated with this inventory adjustment. Either this or Account must be provided during insertion.

Class String False 1000

The name of the class associated with this inventory adjustment, used for categorization or reporting.

ClassId String False

Class.ID

255

The ID of the class associated with this inventory adjustment, used for categorization or reporting.

CustomerName String False 1000

The name of the customer associated with this inventory adjustment, if applicable.

CustomerId String False

Customers.ID

255

The ID of the customer associated with this inventory adjustment, if applicable.

Memo String False 5000

Additional notes or details about this transaction.

InventorySite String False 31

The name of the inventory site where the adjustment takes place.

InventorySiteId String False

InventorySites.ID

255

The ID of the inventory site where the adjustment takes place.

Date Date False

The date when the inventory adjustment transaction occurred.

ItemLineId String False 255

A unique identifier for the specific line item within the inventory adjustment.

ItemLineNumber String True 255

The sequential number assigned to this line item within the inventory adjustment.

ItemName String False

The name of the item being adjusted. Either ItemName or ItemId must be provided during insertion.

ItemId String False

Items.ID

255

The ID of the item being adjusted. Either ItemName or ItemId must be provided during insertion.

ItemNewQuantity Double False

The updated quantity of the item after the adjustment. Only applicable during insertion; no value is returned.

ItemNewValue Double False

The updated value of the item after the adjustment. Only applicable during insertion; no value is returned.

ItemQuantityDiff Double False

The change in the quantity of the item as a result of this adjustment.

ItemValueDiff Double False

The change in the total value of the item as a result of this adjustment.

ItemLotNumber String False 40

The lot number associated with the adjusted item. Requires QBXML Version 11.0 or higher.

ItemExpirationDateForSerialLotNumber String True 1099

The expiration date for the serial lot number of this item. Requires QBXML Version 16.0 or higher.

ItemSerialNumber String False 4095

The serial number associated with the adjusted item. Requires QBXML Version 11.0 or higher.

ItemSerialNumberAddedOrRemoved String False

Indicates whether the serial number was added or removed during the adjustment. Requires QBXML Version 11.0 or higher.

The allowed values are Added, Removed.

ItemInventorySiteLocationId String False 255

The ID of the specific location within the inventory site for this adjustment. Requires QBXML Version 12.0 or higher.

ItemInventorySiteLocationName String False

The name of the specific location within the inventory site for this adjustment. Requires QBXML Version 12.0 or higher.

EditSequence String True

A versioning identifier used to track changes to this record.

TimeModified Datetime True

The timestamp of the last modification to this inventory adjustment.

TimeCreated Datetime True

The timestamp of when this inventory adjustment 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

Specifies another transaction to which this adjustment is linked. Available only during insertion and requires QBXML Version 6.0 or higher.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 24.0.9175