Explore BrainMass

JScript and HTML Web Page for Invoice Entry

I'm trying to draw a diagram for a invoice problem statement. I need to create the function in JavaScript and call it in an HTML file.

For the objects identified write a constructor.Then create create two methods that act on invoices. One should be addLineItem that adds a line item to an existing invoice. The other should calculateTotal that determines the total billing price of the invoice.


Solution Preview

Please find attached two files: the Invoice.js contains all JavaScript code, while Invoice.htm contains the web page that allows ...

Solution Summary

The solution contains 3 classes Customer, Invoice and InvoiceLine. At any one time there will be just one Invoice that must be created by clicking the "Create Invoice" button. To this Invoice, you can add as many line items as you like and calculate it's totals. All code resides in jscript file.