You are on page 1of 34

A PROJECT REPORT

ON

“RETAIL CHAIN MANAGEMENT”

Submitted in partial fulfillment for award of the degree of

BACHELOR OF TECHNOLOGY

Session 2012-2013

Submitted To: Submitted By:

DEPARTMENT OF COMPUTER SCIENCE


ENGINNERING COLLEGE
Engineering College

CERTIFICATE
Certified that project work entitled “Retail chain management” carried out
by , a student of Engineering College in
Partial fulfillment for the award of Bachelor of Technology in Computer Engineering
of University, during the year 20012-2013.It is certified
that all correction/suggestion indicated for Internal Assessment have been incorporated
in the Report deposited in the departmental library. The Project report has been approved
as it satisfies the academic requirements in respect of project work prescribed for the said
degree.

Mr. (Name of Guide)


(Head of Department computer science)

Name of the examiners Signature with date


1.
2.
ABSTRACT

The entitled project “Retail Chain Management “ is constructed for centralized


determination for daily sell of a number of retail outlets of same organization.Through
this the authorities of company can make production and marketing Inventory decisions
along with observing account of individual retail outlet .All this business processes are
implemented by using PHP &MySql and Apache. PHP is a server- side scripting
language ,MySql is Database and Apache is Web server.Whenever browser
requesting .php file to web server, web server process interpret the php code and queries
are made to Database and after processing result the content is forwarded to web browser
and thus it display results.

Using component:
1 PHP5.3.0
2 MySQL5.1.36
3 Apache2.2.11
4 Adobe Dreamweaver(editor)
This application helps to execute business process in short time and provide data
information which is used during business marketing and inventory decisions more
precisely and all these are now possible in less time and also it put low processing cost
.All these features make this application more useable in present competitive market
ACKNOLEDGEMENT

Words, like the real things are depicting, have their own handicaps. They shall never be
able to pierce through the gamut of emotions that is suddenly exposed during the routine
of our life. They will never be able to describe the spirit of co-operation with which we
worked together, nor shall they ever be able to express the feeling we feel towards the
guide.
Before we get into think of the things we would like to add a few heartfelt words for
people who were the part of this seminar report in numerous ways. We feel it pertinent to
add a word of praise for training guide for his cool mind, patience and always bearing
grotesque smile which definitely provided me encouragement, enthusiasm and lively
atmosphere all the times.
It goes without saying that no work can be perfect without ample guidance. We wish to
thank our HOD.----- and Mr.--------- and all computer science dept. as our guide for the
time they devoted to review the report and their helpful comments.
We are indebted to them for being a perpetual source of inspiration and motivation
for us . I feel privileged to express my sincere thanks and deepest sense of gratitude to for
helping me to overcome all the difficulties I faced. Words are insufficient to express my
profound sense of gratitude to my guides, parents, friends whose encouragement and
blessings gave me great physical and moral strength.
PREFACE

Minor project is very important in engineering, because the engineering belongs to “be
practical engineers” and the students need to learn manage and implement the projects
and able to specify the projects.The group work and working in team, listen the ideas of
team members and project manager, and work with a great spirit is good for team
members and project.Using new technology and make existing system more impressive
and increase the features of system and make more efficient product and improve the
productivity of system is main goals of a project.
Minor project in engineering to final year students for brings new ideas for them,
improve understanding on logics, increase their area of thinking are purposes of minor
projects. sBecause all of things starts at low level before begin at big level so students
need to first implement any minor project before their major, so the thing of minor is
quite important as major.
CONTENTS

1. Goal

2. Scope

3. Technology used

4. Features

5. Software development life cycle


5.1 Planning

5.2 Software Requirement Specification

I. INTRODUCTION

a) Purpose

b) Scope

c) Definition and Abbreviation

d) References

e) Overview

II. GENERAL DESCRIPTION

a)Product Prespective

b) Product Function

c) General Constraints
d)Assumption

6. Design
6.1 Data Flow Diagram of STOCK management
6.2 Data Flow Diagram of SELL management
7. Coding
7.1 Coding for showing DATABASE table “stock”
7.2 Coding for showing DATABASE table “sell”
7.3 Coding for performing various manipulation
8. Testing
8.1 Screenshot of MAIN.html
8.2 Screenshot of stock table
8.3 Screenshot of stock ADD operation
8.4 Screenshot of stock EDIT operation
8.5 Screenshot of stock DELETE operation
8.6 Screenshot of SELL table
8.7 Screenshot of NEW SELL
8.8 Screenshot of OLD SELL
9. Installation

10. Maintenance

11. Conclusion

12. Bibliography
1. GOAL

Today business environment one organization have a number of retail outlets located in
different cities. Such application should be capable of providing
the way of managing stock and regular sell and obliviously in a large retail organization
This project is made to simplifying and speed-up the retail business process .in all such
application can take important only when they can put all Such business information ,
accessible to corresponding authorities.

For this purpose we have to make use of web based environment through this operator
on a retail outlet , first enter the products in stock its name quantity, sell rate, purchase
rate. Then one have to enter the daily sell of products their sell rate and quantity .After
this action taken by application
2. SCOPE

This online application is dynamic and can be used at any type of retail outlets
of each business .one can make graphical data analysis for further marketing
strategy and business planning.

Such application can be used to analysis data regarding sell and stock.
Further it can help in monitoring cash flow of outlets and for making decision for
raw products purchase ordering and manufacturing unit according to market
demand of their even individual product.

This type of application able to provides daily sell so authorities can make
advanced decision also this kind of unit decreases the complexities of data
interpretation and then analysis or make resultant accordingly.
3. TECHONOLOGY USED

This project is an web based application that using :

1. PHP-Hypertext Preprocessor PHP5.3.0


2. MySQL5.1.36
3. wamp server2.2.11
4. Adobe Dreamweaver(editor)

3.1) PHP is a powerful tool for making dynamic and interactive Web pages. Thus php is
a server side scripting language that makes web pages truly dynamically .

3.2) MySQL- MySQL is the database construct that enables PHP and Apache to work
together to access and display data in a readable format to a browser. It is a Structured
Query Language server designed for heavy loads and processing of complex queries. As
a relational database system, MySQL allows many different tables to be joined together
for maximum efficiency and speed.
3.3) wamp server- wamp, is an open source installer that will install Apache, MySQL,
PHP, Perl, phpMyAdmin, and an FTP server. It is suitable for Windows systems
Apache- Apache acts as our Web server. Its main job is to parse any file requested by a
browser and display the correct results according to the code within that file. Apache is
quite powerful and can accomplish virtually any task that we require.
3.4) Adobe Dreamweaver - Dreamweaver CS5 integrates with Adobe Browser Lab, one
of the new CS Live online services, which provides a fast and accurate solution for cross-
browser compatibility testing. With Browser Lab you can preview web pages and local
content using multiple viewing and comparison tools.

4. FEATURES

• Admin and operator login options available


• Provide security and consistency
• Provide category of products at first
• Easy interface for editing like adding and deleting or updating
• Separate pages for inventory and sell management
• Allow manager to make corresponding queries like total sell details
between specified date
• Along each sell it specifies date of sell
• Allow different constraint over desire employer
• General operator can only known about sell rate
• Operator cannot sell any product below then its pre-specified limit
• It can make warning about less available quantity when certain critical
limit of quantity reach
• It calculate amount of individual product after giving sale rate and
quantity
• Again it can calculate profit given by individual product sell
• It stops to sell the product quantity when it is not currently present.
5. SOFTWARE DEVELOPMENT LIFE CYCLE

a) PLANNING :-
This online application is dynamic and can be used at any type of retail outlets
of each business .one can make graphical data analysis for further marketing
strategy and business planning.
For this purpose technology will be use as :
1) PHP-Hypertext Preprocessor PHP5.3.0
2) MySQL5.1.36
3) wamp server2.2.11
4) Adobe Dreamweaver(editor)

5.2 SOFTWARE REQUIRMENT SPECIFICATION

I. INTRODUCTION
a) Purpose-
Today business environment one organization have a number of retail outlets located in
different cities. Such application should be capable of providing
the way of managing stock and regular sell and obliviously in a large retail organization
This project is made to simplifying and speed-up the retail business process .in all such
application can take important only when they can put all Such business information ,
accessible to corresponding authorities.

For this purpose we have to make use of web based environment through this operator
on a retail outlet , first enter the products in stock its name quantity, sell rate, purchase
rate. Then, one have to enter the daily sell of products their sell rate and quantity .After
this action taken by application. Here the project name is “Retail chain management”.
This project is referring the retail outlets of building material.

b) Scope -
This online application is dynamic and can be used at any type of retail outlets
of each business .one can make graphical data analysis for further marketing
strategy and business planning.
Such application can be used to analysis data regarding sell and stock.
Further it can help in monitoring cash flow of outlets and for making decision for
raw products purchase and manufacturing unit according to market demand of
their even individual product.

This type of application able to provides daily sell so authorities can make
advanced decision also this kind of unit decreases the complexities of data
interpretation and then analysis or make resultant accordingly.

c) Definition and Abbreviations-


Software development life cycle (SWDLC)- It is an abstract
representation of gradual development and evolution of the software the undergoes a
series of sequential or concurrent steps of the software development process.
Software requirements specification (SRS)-It is the major deliverable arising from the
requirement capturing process. It provides document outline for SWDLC .

d) References –
This document outline is obtained from wikipedia.

e) Overview -
Section 1- provides purpose ,scope of project and document outline.
Section 2- provides a general description of user requirements.

II. General Description


a) Product perspective
Design layout-In this we make consideration of input and output field and also
ordered them according to business rule.
Implementation- now its step for giving actual code to solve varios need i.e.

• HTML code(main page, input forms),


• PHP code(for dynamically functionality ),
• MySQL queries (retrieving data from database tables)

b) Product function
This application provides the fast functionality between retail outlet operator and
distant management of that corresponding organization. At first operator have to
enter all details of initial stock of their goods in the columns of product name
product quantity , corresponding purchase rate and sell rate .this all entry made by
operator is stored in table of database STOCK(in this project).
Now once the initial details is presented in database then its time to sell of
products . In this phase operator can select product name from a dynamic drop
down list and have to enter quantity and sell rate of that product and this all
selling info is submitted through a html form to database second table pvc_sell(in
this project).Application will update the quantity in STOCK to remaining items
and specify system generated date along with each sell of product.

c) General Constraints
As this is an online running application so it for submitting all information a
network connection is mandatory at the time of information transformation. All
The user first have to pass through an account filtrations before accessing
database.

d) Assumptions
In this project for reducing complexities of business rules ,the operator have to
enter the purchase rate of every individual product after calculating all applied
TAX and other charges . The same is considered in the phase of selling of the
products .
6. DESIGN

First database “stock” is created in MySQL .This created database is made with two
tables “pvc.stock” and “pvc_sell.stock” respectively. Further for user interface the SQL
query html form and tables retrieving data from database are designed with the help of
CSS(cascade style sheet ).

In design phase it is needed to show how the various process in this


application takes place for this I make use of DATA FLOW DIAGRAM

Fig 6.1 whole application

6.2 DFD for STOCK MANAGEMENT


6.3DFDSELL
7. CODING

7.1 Coding for retrieving data from “pvc.stock”


<?php
//connect to Mysql
$connect= mysql_connect("localhost","root","")
or die ("not connect");
//select existing database
mysql_select_db("stock");
//select existing database
mysql_select_db("stock");
$query="SELECT *FROM pvc";
$result=mysql_query($query)
or die("not find");
?>

<html>
<title>DISPLAY PVC </title>
<style type="text/css">
TD{color:#093353535;font-family:verdana}
TH{color:#096FFFFFF;font-family:verdana;background-color:#036336699}
body,td,th {
font-size: 18px;
color:#000;}
body {
background-color:#09C9CF;}

</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<table width="1300" height="1" border="5" align="right" cellpadding="0"
cellspacing="0"
bgcolor="#CCCCCC">
<tr>
<th bgcolor="#FFFFFF">item_id</th>
<th bgcolor="#FFFFFF">name </th>
<th bgcolor="#FFFFFF">qty </th>
<th bgcolor="#FFFFFF">s_rate</th>
<th bgcolor="#FFFFFF">p_rate </th>
</tr>
<?php
while($row = mysql_fetch_assoc($result)){

echo "<tr> ";


foreach($row as $value){
echo "<td>";
echo "$value";
echo "</td>";
}
echo "</tr>";
}
echo "</table>";
?> </table>

<html>
<head>
<style type="text/css">
<ul>
{
list-style-type:none;
margin:0;
padding:0;
}
a
{
display:list-item;
width:100px;
background-color:#FFF;
}
</style>
</head>
<script type="text/javascript">
<!--
function Popupw() {
window.open( "user input.php", "sell window",
"status = 1, height = 300, width = 300, resizable = 0" )
}
function Popupe() {
window.open( "pvcedit.html", "sell window",
"status = 1, height = 300, width = 300, resizable = 0" )
}
function Popupd() {
window.open( "delete.html", "Delete window",
"status = 1, height = 300, width = 300, resizable = 0" )
}

</script>

<input type="button" onClick="Popupw()" value="ADD">


<br>
<input type="button" onClick="Popupe()" value="EDIT">
<br>
<input type="button" onClick="Popupd()" value="DEL">

</body>
</head>
</html>

7.2 Coding for retrieving data from “pvc_sell.stock”

<?php
//connect to Mysql
$connect= mysql_connect("localhost","root","")
or die ("not connect");
//select existing database
mysql_select_db("stock");
$query="SELECT * from pvc_sell";
$result=mysql_query($query)
or die("not find");?>
<html>
<title>DISPLAY PVC </title>
<style type="text/css">
TD{color:#093353535;font-family:verdana}
TH{color:#096FFFFFF;font-family:verdana;background-color:#036336699}
body,td,th {
font-size: 15px;
color:#C30;}
body {
background-color:#09C9CF;}

</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<table width="1300" height="1" border="5" align="left" cellpadding="0"
cellspacing="0"
bgcolor="#99CCFF">
<tr>
<th bgcolor="#FFFFFF">name </th>
<th bgcolor="#FFFFFF">qty </th>
<th bgcolor="#FFFFFF">sell_rate</th>
<th bgcolor="#FFFFFF">amount</th>
<th bgcolor="#FFFFFF">profit</th>
<th bgcolor="#FFFFFF">sell_date</th>
</tr>
<?php
while($row = mysql_fetch_assoc($result)){

echo "<tr> ";


foreach($row as $value){
echo "<td>";
echo "$value";
echo "</td>";
}
echo "</tr>";
}
echo "</table>";
?>
<style type="text/css">
ul
{
list-style-type:none;
margin:0;
padding:0;
}
a
{
display:list-item;
width:100px;
background-color:#FFF;
}
</style>
<script type="text/javascript">

function Popupw() {
window.open( "olddate.html", " duration window",
"status = 1, height = 300, width = 300, resizable = 0" )
}
function popups(){
window.open( " pvcsell.php","sell window",
"status = 1, height = 300, width = 300, resizable = 0" )
}
</script><ul>
<input type="button" onClick="Popupw()" value="OLD SELL">
<br>
<input type="submit" onClick="popups()" value="NEW SELL">

</html>
7.3 Coding for processing all data submitted by various HTML form

<?php
// to insert into database
$connect= mysql_connect("localhost","root","")
or die ("not connect");
mysql_select_db('stock', $connect)
or die (mysql_error());
$nam=$_POST['name'];
$qt=$_POST['qty'];
$sr=$_POST['s_rate'];

$querya="SELECT qty FROM pvc


WHERE name='".$nam."'";
$qy=mysql_query($querya);
$rowq=mysql_fetch_row($qy);
$uq=$rowq[0];

$queryb="SELECT s_rate FROM pvc


WHERE name='".$nam."'";
$st=mysql_query($queryb);
$rows=mysql_fetch_row($st);
$st=$rows[0];

$query="SELECT p_rate FROM pvc


WHERE name='".$nam."'";
$r=mysql_query($query);
$row=mysql_fetch_row($r);
$pr=$row[0];
if($uq<=$qt)
echo "<script>alert('Only ".$uq."".$nam." available in stock ')
</script>";
else if ($sr<=$pr)
echo "<script>alert('minium sell rate of ".$nam." can be ".$st." or at least
".$pr." ')</script>";
else{

function total($h,$s)
{
$k=$h*$s;
return $k;
}
$am= total($sr,$qt);
function pro_fit($a,$b,$c)
{
$p=$a*($b-$c);
return $p;
}
$prof=pro_fit($qt,$sr,$pr);

//date
$t=date("Y.m.d");
$sql = "INSERT INTO pvc_sell
(name,qty,s_rate,amount,profit,sell_date)VALUES
('$nam','$qt','$sr','$am','$prof','$t')";
mysql_query("$sql")
or die(mysql_error());

$querya="SELECT qty FROM pvc


WHERE name='".$nam."'";
$qy=mysql_query($querya);
$rowq=mysql_fetch_row($qy);
$uq=$rowq[0];

function updateq($m,$n)
{
$f=$m-$n ;
return $f;
}
$fq=updateq($uq,$qt);

$queryu="UPDATE pvc
SET qty=' ".$fq."'
WHERE name='".$nam."'";

mysql_query($queryu)
or die(mysql_error());
}
include("pvc_selllist.php");

?>
8. TESTING

In this phase of software development life cycle the built and integrated
application files are checked for their functionality and connectivity with each
other. The process of testing is presented in this section as from bellow starting
from main HTML page snapshot as bellow:-

Fig.8.0 main.html

This main page have link to pvc.stock table and pvc_sell table of our database “stock”.
After clicking on pvc_list (4.1) and on pvc_sell(4.2) as described further

8.1) stock management :-


As shown in above picture there are three buttons explained bellow
a) ADD – To add new items in stock table through a HTML form as
shown bellow:

Fig.8.2

b) EDIT –To edit any column entry of table 4.1 by using HTML
form as bellow:-
Fig.8.3

c) DELETE –To delete any single row of table 4.1 as shown :-

From above tables we have to check for necessary updates or changes in stock
table along with each steps.

8.2 Sell management


This section describing the process on clicking “pvc_sell” link of main page
and in this result the table is shown bellow :-

As shown in above table presenting the data about previous sell and having button
a) NEW SELL – To make entry of new product sell :-

HTML form as above containing three fields first a Dynamic drop-down list which
contain name of those products currently available in STOCK.
b) OLD SELL – This button perform query for previous sell
between two specified date in HTML form :-

During testing phase we have to ensure these important points:-


• Check for each entry in stock table
• Check weather the query giving result correct or not
• Ensure that sell is made, not putting into lose
• Ensuring sell is made only for available products and quantity
9..INSTALLATION -
Now after resolving all detected problems in testing phase its the time
for run real business process for this all the files oh coding are put into
root directory of web server and now various user make query to database
through establishing connection between their host and database web
server.

10. MENTANCE -
What happens during the rest of the software's life: changes, correction,
additions, moves to a different computing platform and more. This, the least
glamorous and perhaps most important step of all, goes on seemingly forever.
11. CONCLUSION

In this project at last I found this as an basic application process for supporting
retail business from distant location .This type of application helps for further
data interpretations and analysis of retail business by other regarding
software to make strategically business decisions . The data from this
application can be used to directly as input for graphical representation .Thus
these types of further possibilities through this application provides its
importance.

12. BIBLIOGRAPHY

Website:
1 .www.phpnet.com
2. www.w3school.com

You might also like