The cLineItems class controls the lineitems of a real invoice. The cTLineItems object handles temporary 'virtual' invoice lineitems - the two classes differ slightly in structure and use different data files, but otherwise share the same object interface.

This class is a little tricky to work with in that the invoice does not directly attach to this class. Instead Invoice uses a cItemList class which is a lightlweight class that only holds an array of SCATTER NAME objects and a count. This object can be generated by this class using LoadLineItems() and passed to an invoice.

This class also handles inventory updates on physical items through the Save and DeleteLineItem methods.

For clarity explict LoadItem and DeleteItem methods were added to differentiate between single record and multi-record operation. The single record operations are functionaly equivalent for Load() and Delete() in other classes.

The underlying table is wws_lineitems

Parent Class: wwBusiness

Properties, Events and Methods

Member Description
additemSimplified method that handles adding an item to inventory.
o.additem(lcSKU, lnInvPK, lnQty, lnMode)
calculateitemtotalRecalculates the Item Total for the item taking into account any discounts.
o.calculateitemtotal()
deletelineitemDeletes an individual lineitem for a particular order based on the sku.
o.deletelineitem(lvID, lnInvPK, llReturnInventory)
deletelineitemsDeletes all lineitems and updates inventory.
o.deletelineitems(lnInvPK, llNoInventoryReturn)
loaditemLoads an individual item. Simply calls through to Load().
o.loaditem(lnPK)
loadlineitemsReturns lineitems either as a cursor, Object Array (used in the store) or as XML.
o.loadlineitems(lnParentpk,lnlookuptype)


Last Updated: 06/04/03 | Send topic feedback