The invoice class is the most powerful class in the Web store application. It's the main interface to the developer working with the Web Store as it acts as a high level object through which you can reach the various other objects.

The underlying table is wws_Invoice.

Parent Class: wwbusiness

Properties, Events and Methods

Member Description
addlineitemAdds a lineitem to the oLineItems object array.
o.addlineitem(loLineItem)
applydiscountApplies a discount percentage to the entire invoice
o.applydiscount(lnDiscount)
checkccexpirationChecks a mm/yy string expression for validity.
o.checkccexpiration(lcExp)
checkinvoiceforpkconflictMethod used to update invoice and customer Pks during imports to make sure that if the invoice exists already that a new InvoicePK is generated and the lineitems are updated.
o.checkinvoiceforpkconflict()
deletelineitemDeletes a lineitem from the lineitems object array.
o.deletelineitem(lvID)
emailconfirmationSends an email confirmation to the invoice customer.
o.emailconfirmation(lcMailServer, lcSenderEmail, lcSenderName)
exportorderstoxmlExports orders to XML format.
o.exportorderstoxml(lcFilter, llMarkDownloaded)
getinvoicelistReturns an invoice list for display in invoice list box.
o.getinvoicelist(lnDays)
getlineitemRetrieves a lineitem by Sku
o.getlineitem(lvID)
htmllineitemsGenerates an HTML table display for the lineitems attched to this invoice.
o.htmllineitems(lnLinkMode, llTotals, lcForeign, lcShipDisks)
importxmlImports an order from an XML string.
o.importxml(lcXML)
invoicetotalCalculates the invoice total from the detail information held in the lineitems object.
o.invoicetotal()
isinvoiceChecks to see if an invoice exists by PK. This is so we don't have to load a full invoice just to check.
o.isinvoice(lnPK)
loadinvoicebyinvoicenoLoads an invoice by invoice number instead of by PK.
o.loadinvoicebyinvoiceno(lcInvNo)
loadlineitemsLoads or reloads the lineitems for the invoice into the oLineItems object member.
o.loadlineitems(lnPK)
markdownloadedMarks messages as downloaded. Typically this method is called after ExportOrdersToXML as a confirmation and then clear the same order items.
o.markdownloaded(lcFilter, llUnmark)
printinvoicePrints the current invoice object.
o.printinvoice(lnMode)
validatecreditcardValidates the credit card for the current invoice.
o.validatecreditcard(lcStoreType, lcStoreName, lcPassword, lcVarParm, llCredit)
cshipcountryWorker property set to determine the country that an order is shipped to. Two letter country code (US, CA, MX etc.).
cshippingbehaviorclassClass used to perform shipping calculation.
cshipstateWorker property that is set with the state where order is shipped to.
ctaxbehaviorclassBehavior Class used for Tax Calculations. Not used in current Web store.
lnoshippingtotalTells the class to not calculate shipping totals.
lnotaxtotalTells the class not to calculate Tax Totals when doing InvoiceTotal()
nsubtotalRunning Subtotal value.
ocustomerThe Customer object related to this Invoice
olineitemsThe LineItems object related to this invoice. This object contains all the lineitems in an array of objects.


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