Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 19

Billing System

Billing System
A
Project Report
Submitted
In partial fulfillment
For the award of the Degree of
Master of Computer Application
by

Submitted To Submitted By

Dr. Manju Kaushik Pulkit Nama

MCA 5 Sem (sec. B2)

Reg no. : 17MCAL087

Department of Information Technology & Computer


Application
JECRC UNIVERSITY, JAIPUR

JECRC University, Jaipur Page i


Billing System

Candidate’s Declaration

I,__________hereby declare that the work presented a minor project


entitled“Bill System” in partial fulfillment of the requirements for the
award of Degree of Master of Computer Application, submitted in the
Department of Computer Application at JECRC University, Jaipur, is an
authentic record of my own seminar work under the supervision
of______________.

Your Name:
Enrolment No.
Date:

JECRC University, Jaipur Page ii


Billing System

Abstract

Objective

“To make software fast in processing, with good user interface so that
user
can change it and it should be used for a long time without error
andmaintenance.”

Work Flow

Work in the billing System will be done in the following way:


1. The product will come in the store.
2. Data entry operator will enter the information of the product in
database.
3. The Administrator will enter the taxes and commissions for each
product.
4. The customer will come and take the basket with him/her and
choosethe product and took it to the counter.
5. The bill calculating operator will check the products with the bar
codedetecting machine then it will match with product-id then it will
showits information and price and the bill will be calculated and total
payment will shown.
6. Customer will pay

JECRC University, Jaipur Page iii


Billing System

Login

Admin

Add Student Bill

Update Student New Bill

JECRC University, Jaipur Page iv


Billing System

Scope

Our project has a big scope to do. We can:


1. Calculate the bill.
2. Give the bill to the Student.
4. Change the Graphical User Interface of the system.

Description of the Billing System

Many Billing System use this type of billing system for a decade. It is also
improved many times according to requirements of sellers and
customers. It does the same work that is calculating the bill, gives it to the
customer and maintain proper database. They are accurate in calculation
and printing, they also generate records.
A new concept is also added in the billing system is that they also
maintain relationships with the customers who purchase more products
from the store regularly. System also concerns their requirements and
gives them more commission. It also shows the overall profit and profit
on a particular product and give repots which items are required and
which have cross their expiry date

JECRC University, Jaipur Page v


Billing System

Billing System

Index.php
<?php
error_reporting(0);
ob_start();
session_start();
if($_SESSION['admin_id'] != '')
{
header("Location:home.php");
}

?>

<?php
ob_start();
session_start();

JECRC University, Jaipur Page vi


Billing System

error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db("admin");

$username = $_POST['name'];
$pass = $_POST['pass'];

$query = mysql_query("SELECT * FROM `admin` WHERE


`user_name` = '$username' AND `user_pass` = '$pass'");

if(mysql_num_rows($query) > 0)
{
$get = mysql_fetch_assoc($query);

$_SESSION['admin_id'] = $get['id'];
$_SESSION['fail']=0;
header("Location:home.php");
}
else
{
$_SESSION['fail']=1;
header("Location:index.php");
}
?>

……………………………………………………………………………………………………………….
Home.php
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-navnavbar-collapse">
<ul class="nav" id="side-menu">

JECRC University, Jaipur Page vii


Billing System

<li>
<a href="#"><i class="fafa-table
nav_icon"></i>Student<span class="fa arrow"></span></a>
<ul class="navnav-second-level">
<li>
<a href="add.php">New Add Student</a>
</li>
<li>
<a href="basic_tables.php">All Student</a>
</li>
<li>
<a href="find.php">Find ?</a>
</li>

</ul>
<!-- /.nav-second-level -->
</li>

<li>
<a href="#"><i class="fafa-table nav_icon"></i>Fees<span
class="fa arrow"></span></a>
<ul class="navnav-second-level">
<li>
<a href="Fees.php">Add Monthly Fees</a>
</li>
<li>
<a href="show.php">Show All Fees</a>

JECRC University, Jaipur Page viii


Billing System

</li>
<li>
<a href="exam.php">Exam Fees</a>
</li>

</ul>
<!-- /.nav-second-level -->
</li>
<li>
<a href="#"><i class="fafa-check-square-o
nav_icon"></i>Bill<span class="fa arrow"></span></a>
<ul class="navnav-second-level">
<li>
<a href="form3.php">Create New bill</a>
</li>
<li>
<a href="cp.php">Change bill</a>
</li>
<li>
<a href="allbill.php">All bill</a>
</li>
</ul>
<!-- /.nav-second-level -->
</li>
<li>
<a href="#"><i class="fafa-sitemap fa-
fwnav_icon"></i>Css<span class="fa arrow"></span></a>
<ul class="navnav-second-level">
<li>
<a href="media.html">Media</a>

JECRC University, Jaipur Page ix


Billing System

</li>
<li>
<a href="index.php">Login</a>
</li>
</ul>
<!-- /.nav-second-level -->
</li>
</ul>
</div>
……………………………………………………………………………………………………………………………
Add.php
<?php
error_reporting(0);
if(isset($_POST['submit']))
{
mysql_connect('localhost','root','');
mysql_select_db('admin');
$a=$_POST['name'];
$b=$_POST['fname'];
$c=$_POST['mail'];
$d=$_POST['num'];
$e=$_POST['add'];
$f=$_POST['dob'];
$date= date('d/m/y');
$qry = mysql_query("SELECT * FROM `item` ORDER BY
`item`.`id` DESC") ;
$data =mysql_fetch_assoc($qry);
$last_id = $data['sid'];

$x=substr($last_id,6,4);

JECRC University, Jaipur Page x


Billing System

if ($x=='')
{
$x=1001;
}

$y= $x+1;
$year = date(Y);

$f=substr($a,0,1);
$l=substr($b,0,1);
$sid=$f.$l.$year.$y;

$a=$_POST['name'];
$b=$_POST['fname'];
$c=$_POST['mail'];
$d=$_POST['num'];
$e=$_POST['add'];
$f=$_POST['dob'];
$date= date('d/m/y');
$z=$_POST['g'];
$imgFile = $_FILES['user_image']['name'];
$tmp_dir = $_FILES['user_image']['tmp_name'];
$imgSize = $_FILES['user_image']['size'];
$upload_dir = 'user/'; // upload directory

$imgExt =
strtolower(pathinfo($imgFile,PATHINFO_EXTENSION)); // get
image extension

JECRC University, Jaipur Page xi


Billing System

// valid image extensions


$valid_extensions = array('jpeg', 'jpg',
'png', 'gif'); // valid extensions

// rename uploading image


$userpic = rand(1000,1000000).".".$imgExt;
if($imgSize< 5000000) {

move_uploaded_file($tmp_dir,$upload_dir.$userpic);
}
else{
$errMSG = "Sorry, your file is
too large.";
}

mysql_query("INSERT INTO `item`(`name`, `Fname`, `mail`,


`num`, `add`, `DOB`, `join`,`sid`,`g`,`userpic`) VALUES
('$a','$b','$c','$d','$e','$f','$date','$sid','$z','$user
pic')");

echo "Done ";

}
?>
…………………………………………………………………………………………………………………….
Bsic.php

JECRC University, Jaipur Page xii


Billing System

<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');

$query=mysql_query("select * from item ORDER BY


`item`.`id` ASC");

while($results= mysql_fetch_assoc($query))
{
?>
<tr class="active">
<th scope="row"><?php echo $results['id'];?></th>
<td><?php echo $results['name'];?></td>
<td><?php echo $results['sid'];?></td>
<td><?php echo $results['Fname'];?></td>
<td><?php echo $results['mail'];?></td>
<td><?php echo $results['num'];?></td>
<td><a href="view.php?id=<?php echo
$results['id'];?>">View</a></td>

<td><a href="update1.php?id=<?php echo


$results['id'];?>">Update</a></td>

</tr>

</tbody>
<?php

JECRC University, Jaipur Page xiii


Billing System

?>
Find.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');
if(isset($_POST['submit']))
{
$roll = $_POST['Roll'];
$query="select * from item where sid='$roll'";
$query2= mysql_query($query);
while($results= mysql_fetch_array($query2))

{
?>
<tr class="active">

<td><?php echo $results['name'];?></td>


<td><?php echo $results['sid'];?></td>
<td><?php echo $results['Fname'];?></td>
<td><?php echo $results['mail'];?></td>
<td><?php echo $results['num'];?></td>
<td><?php echo $results['add'];?></td>

</tr>

</tbody>

JECRC University, Jaipur Page xiv


Billing System

</table>
</div>
<?php
}
}

?>
…………………………………………………………………………………………………………………..
View.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');
$id = $_GET['id'];
echo $query=mysql_query("SELECT `name`, `Fname`, `mail`,
`num`, `add`, `DOB`, `join`,`sid`,`g`,`userpic` FROM
`item` WHERE id='$id'");

$a=mysql_fetch_assoc($query)
?>
……………………………………………………………………………………………………………
Update.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');

$query=mysql_query("select * from item ORDER BY


`item`.`id` ASC");

while($results= mysql_fetch_assoc($query))

JECRC University, Jaipur Page xv


Billing System

{
?>
<tr class="active">
<th scope="row"><?php echo $results['id'];?></th>
<td><?php echo $results['name'];?></td>
<td><?php echo $results['rate'];?></td>
<td><?php echo $results['num'];?></td>
<td><a href="update1.php?id=<?php echo
$results['id'];?>">Update</a></td>
</tr>

</tbody>
<?php

?>
……………………………………………………………………………………………………..
Off.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');
if(isset($_POST['submit']))
{
$roll = $_POST['Roll'];
$query="select * from item where sid='$roll'";
$query2= mysql_query($query);
while($results= mysql_fetch_array($query2))

JECRC University, Jaipur Page xvi


Billing System

{
?>
……………………………………………………………………………………………………………….
Pay.php
<?php
error_reporting(0);
mysql_connect('localhost','root','');
mysql_select_db('admin');

$query=mysql_query("select * exam item ORDER BY


`exam`.`id` ASC");

while($results= mysql_fetch_assoc($query))
{
?>
<h1><?php echo $results['fees'];?></h2>

<?php

?>
<?php
foreach($_REQUEST['country'] as $key => $as)
{
$as; echo '<br>';
$_REQUEST['state'][$key];echo'<br>';
$_REQUEST['sem'];echo'<br>';

JECRC University, Jaipur Page xvii


Billing System

$_REQUEST['num'];
$_REQUEST['add'];
$_REQUEST['sid'];
$_REQUEST['name'];
$_REQUEST['p'];

$_REQUEST['f'];

date_default_timezone_set("Asia/Kolkata");
$dat=date("d-M-Y-");
$day=date("h:i:s: A");
$dat;

$day;

}
?>

JECRC University, Jaipur Page xviii


Billing System

Conclusion of Project
Our project is on supermarket Billing System. We have
successfully completed it. We take this opportunity to express
our sense of indebtedness and gratitude to all those people who
helped us in completing this project.
We are immensely grateful to our esteemed faculty guide
Assistant Prof. Mr Vijay Singh Rathore and other faculties for
their supervision and guidance without which this work would
not have beenpossible.This project has contributed a lot to my
knowledge that hasproved to be a value addition for me.

JECRC University, Jaipur Page xix

You might also like