Simplified method that handles adding an item to inventory.

This method pulls info directly from an Item in inventory and inserts the values into the lineitem. The item returns an cLineItems object you can further manipulate using Save() to write it to disk.

Syntax:

o.additem(lcSKU, lnInvPK, lnQty, lnMode)
Return: Returns a lineitem object or .NULL. if it couldn't be added.
Parameters: lcSKU
Item Sku of item to add.

lnInvPK
Invoice to add it to.

lnQty
Qty

lnMode
0 - Add Item individually (default)
2 - Summarize all items of a given SKU into a single item with summarized qty

See also:

Class clineitems

Updated: 4/29/2000 | Send topic feedback