ODBC Driver for QuickBooks

Build 22.0.8462

InventoryAdjustmentLineItems

Create and query QuickBooks Inventory Adjustment Line Items.

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

The unique identifier in the format InventoryAdjustmentId|ItemLineId.

InventoryAdjustmentID String True

InventoryAdjustments.ID

255

The unique identifier for the Inventory Adjustment.

ReferenceNumber String False 21

The transaction reference number.

Account String False 1000

The account the inventory adjustment is associated with. Either Account or AccountId is required on insert.

AccountId String False

Accounts.ID

255

The account the inventory adjustment is associated with. Either Account or AccountId is required on insert.

Class String False 1000

A reference to the class for the inventory adjustment.

ClassId String False

Class.ID

255

A reference to the class for the inventory adjustment.

CustomerName String False 1000

The name of the customer on the inventory adjustment.

CustomerId String False

Customers.ID

255

The id of the customer on the inventory adjustment.

Memo String False 5000

A memo regarding this transaction.

InventorySite String False 31

The name of the inventory site for the transaction.

InventorySiteId String False

InventorySites.ID

255

The id of the inventory site for the transaction.

Date Date False

The date of the transaction.

ItemLineId String False 255

The line id of the item.

ItemLineNumber String True 255

The line item number.

ItemName String False

The item name. Either ItemName or ItemId is required on an insert.

ItemId String False

Items.ID

255

The item identifier. Either ItemName or ItemId is required on an insert.

ItemNewQuantity Double False

The new quantity for this adjustment. Used on only insert. There is no response value.

ItemNewValue Double False

New value of this adjustment. Used on only insert. There is no response value.

ItemQuantityDiff Double False

The change in quantity for this adjustment.

ItemValueDiff Double False

The change in total value for this adjustment.

ItemLotNumber String False 40

The lot number for this adjustment. This field requires QBXML Version 11.0.

ItemSerialNumber String False 4095

The serial number for this adjustment. This field requires QBXML Version 11.0

ItemSerialNumberAddedOrRemoved String False

Whether the serial number for this adjustment was added or removed. This field requires QBXML Version 11.0

The allowed values are Added, Removed.

ItemInventorySiteLocationId String False 255

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

ItemInventorySiteLocationName String False

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

EditSequence String True

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

TimeModified Datetime True

When the inventory adjustment was last modified.

TimeCreated Datetime True

When the 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

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

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462