QuickBooks Integrator 2020 Node.js Edition

Questions / Feedback?

Add Method

Adds the Inventory Adjustment into QuickBooks.

Syntax

adjustinventory.add([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

Add is used to add an Inventory Adjustment transaction into to QuickBooks.

If QuickBooks is able to add the Inventory Adjustment, it will return a copy of the adjustment, and the values of all properties will be reset from the QuickBooks response. The QBResponseAggregate property will also be set to the entire QBXML aggregate received from QuickBooks.

Please note that this class is adding an inventory adjustment transaction into QuickBooks. This is fundamentally different from modifying 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.

Furthermore, these transactions record only the difference in value or quantity that was added or removed. Current and previous quantities and values for inventory items are not recorded or returned. Only the difference is recorded. Please see the AdjustmentQuantityDifference and AdjustmentValueDifference properties for more information.

If QuickBooks is not able to add the Inventory Adjustment, the class will fails with an error.

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