QuickBooks Integrator 2020 Node.js Edition

Questions / Feedback?

Get Method

Gets a single record from QuickBooks.

Syntax

adjustinventory.get(id, [callback])

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for this method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

Get may be used to retrieve a single Inventory Adjustment transaction from QuickBooks, based on its RefId. When the method is called, a search will be initiated for the requested object. If it is found, all properties of the class will be set to the information retrieved from QuickBooks. The QBResponseAggregate property will also be set to the entire QBXML aggregate received from QuickBooks.

Please note that this class is retrieving an inventory adjustment transaction from QuickBooks. This is fundamentally different from retrieving an inventory item. QuickBooks does not allow the direct manipulation of inventory item quantities or values, but rather it maintains a history of the transactions that modify the inventory items.

Therefore this Get operation takes the Id of a previous Inventory Adjustment Add, and returns all of the adjustments made in that transaction in the Adjustment line item properties. Any quantity or value differences for a particular inventory item will show up in the AdjustmentQuantityDifference and AdjustmentValueDifference properties.

You can not set the Id parameter to the Id for an inventory item. This will result in an error. You must use the Item or ObjSearch classs to retrieve inventory items.

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 Node.js Edition - Version 20.0 [Build 7941]