E-Invoice System CS541 Database Systems Class Project By: Parul Gupta
Overview 1CS541: Database Systems Web based system developed using PHP( a scripting language to manipulate the infor- mation stored in a database and to generate the dynamic web pages) and MySQL. Billing system for a company with small sales volume to help in maintaining the records of products, customers and sales.
Overview contd... FEATURES: – Create invoices in a quick and easy manner. – Provides option to apply discount on individual items, and calculates sales tax automatically. – Quick search for past invoices, create report. – In addition to creating invoices, also helps in maintaining the Product and Customer Lists. 3CS541: Database Systems
Database Schema 4CS541: Database Systems Items: Clients: P_CodeNamePriceQuantityDescriptionAdd_Date NamePhone_ No Company_ Name Shipping_ Address Billing_ Address Fax
Database Schema contd… 5CS541: Database Systems Orders: OrderItemlines: Invoice_ No Invoice_ Date Due_DateOrder_NoClient_ Name Client_ Phone L_CodeInvoice_NoP_CodeQuantityDiscountNote ShipviaPO#Credit_CardnoCredit_3digitCredit_Exdate
PHP Functions mysql_connect( ): Open a connection to a MySQL Server mysql_select_db( ): Select a MySQL database mysql_query( ) : Send a MySQL query mysql_fetch_array(result): Returns a row from a recordset as an array mysql_num_rows(result): Returns the number of rows in a recordset mysql_real_escape_string( ): This function escapes special characters in a string for use in an SQL statement CS541: Database Systems6
Main Screen Layout: CS541: Database Systems7
8
9
Future work Generate sales report based on items, customer, daily, monthly and yearly sales. Ability to print and the invoice to customer. CS541: Database Systems10
References Invoice system) CS541: Database Systems11