Sei sulla pagina 1di 30

Entities & its Attributes

Entities Products Staff Attributes Product ID,Product Name,Price,Qty Staff ID,Name,Designation,Contact No.,Mail Address, Address,CNIC No.

Customers Suppliers

Customer ID,Name,Contact No. Supplier ID,Name,Contact No. , Mail address

Staff
Staff ID Name Designat ion Contact No. Mail CNIC Address No. Tempor Perman ary ent Address Address Rail Bazar,str eert No.2, chak Jhumra. Al01 M.Altaf Counter Control 0306797 6920 altaf_tafi 33101_417 Rail 16@yaho 2822_7 Bazar,str o.com eert No.2, chak Jhumra. -

Al02

M.Riaz

Store Keeper

Al03
Al04

Majeed
Zeesha n Ali

Purchase Dealer
Customer Dealing

Customers Table
Customer ID Name Contact No. B0001 Abid Ali 03035773390

Supplier Table
Supplier ID Sp001 Name Imran Ali Contact No. 03007655985 Mail address Imran_ali@hotmail. com

Inventory
Product ID
Product Name Cost Price Total cost/ per unit 36.5 Sale Price Profit Qty Company name Order placing If >40 than 100 ID of purchase dealer Al03 ul0001 Safeguar d 36 38 1.5 80 Unilever

Purchases
Date Purchas eOrder ID po1234 Produc t ID ul0001 Product Name Safeguar d Lux Cost Price 36 Qty Co. name 30 Unilev er Unilev er Produ Order ct Amt Amount 1080 01-12-11

ul0002

36

30

1080

2160

Sale
Date Invoice Produc Produc Qty No. t ID t Name in units
15-12- 0012345 ul0001 11 ul0002 Safegua 2 rd Lux 1

Remai Sale ning Price units


60 50 38 38

Co. name

Prod Invoice uct Amou sale nt

Unilev 76 er Unilev 38 er 114

Purchase Process
Purchase Dealer

Send PR to purchase dealer

Start Customer in Welcome & Reception


Desire department
Desire goods are available?

No

yes Get desire goods


Payment to billing counter

End

ERD
customer

Products

Customers

Staff

Suppliers

Reports
Sale Report
Purchase Report Profit Report

Stock Report
Customer Report Supplier Report Staff Report

Search Design
Product ID:

Product Name:
Invoice No:

From To

Company Name: Date:

From To

Day

Month

Year

Day

Month

Year

Customer Name: Customer ID:

Supplier Name:
Supplier ID: Staff Name:

Staff ID: Staff CNIC No:

Search

Sale Report
Sr. No. Date Invoic Product ID e No. Product Name Sale Price Produ Invoic ct e sale Amou nt

SQL Query
Select:

Date,Product.ID, Product.Name,Invoice.Number,Sale.Price, Product.Sale,Invoice.Amount From: Sale table Where: Product ID=? OR Product Name=? OR Invoice No.=? OR Company Name=? OR Date=?

Purchase Report
Sr.No Date Order No. Product Name Cost Price Qty Co. Produ name ct Amt Order Amount

SQL Query
Select:

Date,Product.Name,Order.Number, Cost.Price,Qty,Company.Name,Product.Amount, Order.Amount From: Purchase table Where: Product ID=? OR Product Name=? OR Order No.=? OR Company Name=? OR Date=?

Profit Report
Serial. No Product name Invoice No. Qty Total cost /per unit Sale price Profit

SQL Query
Select :

Product.Name,Invoice.No, Qty,Total.Cost,Sale.Price,Profit From : Inventory table,Sale table Where : Product ID=? OR Product Name=? OR Date=?

Stock Report
Serial . No Product ID Product Name Remaining units

SQL Query
Select :

Product.ID,Product.Name, Remaining.Stock From : Sale table Where : Product ID=? OR Product Name=?

Customer Report
Sr.No Customer ID Customer Name Contact No.

SQL Query
Select :

Customer.ID,Customer.Name, Contact.No From : Customer table Where : Customer Name=? OR Customer ID=?

Supplier Report
Sr.No Supplier ID Name Contact No. Mail address

SQL Query
Select :

Supplier.ID,Supplier.Name, Contact.No,Mail.Address From : Supplier table Where : Supplier Name=? OR Supplier ID=?

Staff Report
Staff ID Name Designat ion Contact No. Mail CNIC Address No. Tempor Perman ary ent Address Address

SQL Query
Select :

Staff.ID, Staff. Name, Designation, Contact.No,Mail.Address,Temporary.Address, Permanent.Address From : Staff table Where : StaffName=? OR StaffID=? OR CNIC No.=?

Potrebbero piacerti anche