Build a small application to create invoices.
- User can click a button/link to create invoice.
- User can specify customer name, date and invoice number.
- User can add multiple line items by selecting products from a product search component.
- Products/line items include Product Name, Quantity, Price, Total
- Line item fields for Quantity and Price are editable.
- Form is auto-saved or provides a Save button the user can click.
Steps to run the application.
- Execute create_statements.sql to create the schema and tables. I used MySQL Workbench for the database purposes.
- The files should be placed on a server so that php can work.
- In db/db.php, make the changes in the below shown lines. Update it according to your SQL connection.
$con = mysql_connect('127.0.0.1','root','password') or die('can not connect to server');
$con = mysql_connect(,,) or die('can not connect to server'); - run portal.html on the server and start creating invoices.