A Mini Project On Stock Management System
A Mini Project On Stock Management System
A Mini Project On Stock Management System
Introduction:
Stock Management System is software which is helpful for the
businesses operate stores, where store owner keeps the records of
purchase.
This project eliminates the paperwork, human faults, manual delay and
speed up the process.
Stock Management System will have the ability to track overall worth
and available stock.
This is simple, fast and intelligent Stock management that can be used
by anyone who has a smartphone.
Manual calculation of stock present in any store is time-consuming and
very risky.
The workers cannot maintain the store when there is no owner as they
do not know the prices
Overall worth of stock, products worth can be viewed by owner.
Prices of stock present in the store can be seen so that worker can also
manage the stock without the presence of the owner.
It doesn’t require manpower, so it is not expensive.
Inventory management is an important aspect of any successful
business. It is the process of overseeing and controlling the flow of
inventory units a business uses in the production or manufacture of
goods for sale or distribution.
Inventories are usually made up of a combination of goods, raw
materials and finished products, and effective management of these
items is essential to ensure optimal stock levels and to maximize the
earning potential of the company. It also allows a business to prevent
or mitigate any inventory-associated losses.
Inventory management software is used by businesses for various
reasons: it can track the costs of inventory throughout the
manufacture and sales process, tell businesses when to replenish
stock, and allow them to track profits. It can also be used to forecast
inventory levels and prices, as well as expected product demand.
Modules:
Dashboard
Brand
Category
Product
Order
Software/Hardware Requirement
Specification:
Server Side:
?php
require_once 'php_action/db_connect.php';
session_start();
if(isset($_SESSION['userId'])) {
header('location: http://localhost/stock/dashboard.php');
$errors = array();
if($_POST) {
$username = $_POST['username'];
$password = $_POST['password'];
if(empty($username) || empty($password)) {
if($username == "") {
}
if($password == "") {
} else {
$result = $connect->query($sql);
if($result->num_rows == 1) {
$password = md5($password);
// exists
$mainResult = $connect->query($mainSql);
if($mainResult->num_rows == 1) {
$value = $mainResult->fetch_assoc();
$user_id = $value['user_id'];
// set session
$_SESSION['userId'] = $user_id;
header('location:
http://localhost/stock/dashboard.php');
} else{
$errors[] = "Incorrect username/password
combination";
} // /else
} else {
} // /else
} // /if $_POST
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"
href="assests/bootstrap/css/bootstrap.min.css">
<script src="assests/jquery/jquery.min.js"></script>
<script src="assests/jquery-ui/jquery-ui.min.js"></script>
<script src="assests/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="panel-heading">
</div>
<div class="panel-body">
<div class="messages">
<?php if($errors) {
echo '<div
class="alert alert-warning" role="alert">
<i class="glyphicon
glyphicon-exclamation-sign"></i>
'.$value.'</div>';
} ?>
</div>
<form class="form-horizontal"
action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post"
id="loginForm">
<fieldset>
<div class="form-group">
<label
for="username" class="col-sm-2 control-label">Username</label>
<div class="col-sm-
10">
<input type="text"
class="form-control" id="username" name="username"
placeholder="Username" autocomplete="off" />
</div>
</div>
<div class="form-group">
<label
for="password" class="col-sm-2 control-label">Password</label>
<div class="col-sm-
10">
<input
type="password" class="form-control" id="password" name="password"
placeholder="Password" autocomplete="off" />
</div>
</div>
<div class="form-group">
<div class="col-sm-
offset-2 col-sm-10">
<button
type="submit" class="btn btn-default"> <i class="glyphicon glyphicon-
log-in"></i> Sign in</button>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
Dashboard.php:
<?php
$query = $connect->query($sql);
$countProduct = $query->num_rows;
$orderQuery = $connect->query($orderSql);
$countOrder = $orderQuery->num_rows;
$totalRevenue = "";
$totalRevenue += $orderResult['paid'];
}
$lowStockQuery = $connect->query($lowStockSql);
$countLowStock = $lowStockQuery->num_rows;
$connect->close();
?>
<style type="text/css">
.ui-datepicker-calendar {
display: none;
</style>
<link rel="stylesheet"
href="assests/plugins/fullcalendar/fullcalendar.min.css">
<link rel="stylesheet"
href="assests/plugins/fullcalendar/fullcalendar.print.css" media="print">
<div class="row">
<div class="col-md-4">
<div class="panel-heading">
Total Product
</a>
</div> <!--/panel-hdeaing-->
</div> <!--/panel-->
</div> <!--/col-md-4-->
<div class="col-md-4">
<div class="panel-heading">
Total Orders
</div> <!--/panel-hdeaing-->
</div> <!--/panel-->
</div> <!--/col-md-4-->
<div class="col-md-4">
<div class="panel-heading">
Low Stock
</a>
</div> <!--/panel-hdeaing-->
</div> <!--/panel-->
</div> <!--/col-md-4-->
<div class="col-md-4">
<div class="card">
<div class="cardHeader">
<div class="cardContainer">
</div>
</div>
<br/>
<div class="card">
<h1><?php if($totalRevenue) {
echo $totalRevenue;
} else {
echo '0';
} ?></h1>
</div>
<div class="cardContainer">
</div>
</div>
</div>
<div class="col-md-8">
<div class="panel-body">
<div id="calendar"></div>
</div>
</div>
</div>
</div> <!--/row-->
<script src="assests/plugins/moment/moment.min.js"></script>
<script src="assests/plugins/fullcalendar/fullcalendar.min.js"></script>
<script type="text/javascript">
$(function () {
var d = date.getDate(),
m = date.getMonth(),
y = date.getFullYear();
$('#calendar').fullCalendar({
header: {
left: '',
center: 'title'
},
buttonText: {
today: 'today',
month: 'month'
});
});
</script>
<?php require_once 'includes/footer.php'; ?>
Brand.php:
<div class="row">
<div class="col-md-12">
<ol class="breadcrumb">
<li><a href="dashboard.php">Home</a></li>
<li class="active">Brand</li>
</ol>
<div class="remove-messages"></div>
<th>Brand Name</th>
<th>Status</th>
<th
style="width:15%;">Options</th>
</tr>
</thead>
</table>
<!-- /table -->
<div id="add-brand-messages"></div>
<div class="form-group">
<label for="brandName" class="col-sm-3 control-
label">Brand Name: </label>
<label class="col-sm-1 control-label">: </label>
<div class="col-sm-8">
<input type="text" class="form-control"
id="brandName" placeholder="Brand Name" name="brandName"
autocomplete="off">
</div>
</div> <!-- /form-group-->
<div class="form-group">
<label for="brandStatus" class="col-sm-3 control-
label">Status: </label>
<label class="col-sm-1 control-label">: </label>
<div class="col-sm-8">
<select class="form-control"
id="brandStatus" name="brandStatus">
<option value="">~~SELECT~~</option>
<option value="1">Available</option>
<option value="2">Not Available</option>
</select>
</div>
</div> <!-- /form-group-->
<div class="modal-footer">
<button type="button" class="btn btn-default" data-
dismiss="modal">Close</button>
<div id="edit-brand-messages"></div>
<div class="edit-brand-result">
<div class="form-group">
<label for="editBrandName" class="col-sm-3 control-
label">Brand Name: </label>
<label class="col-sm-1 control-label">: </label>
<div class="col-sm-8">
<input type="text" class="form-control"
id="editBrandName" placeholder="Brand Name" name="editBrandName"
autocomplete="off">
</div>
</div> <!-- /form-group-->
<div class="form-group">
<label for="editBrandStatus" class="col-sm-3 control-
label">Status: </label>
<label class="col-sm-1 control-label">: </label>
<div class="col-sm-8">
<select class="form-control"
id="editBrandStatus" name="editBrandStatus">
<option
value="">~~SELECT~~</option>
<option
value="1">Available</option>
<option value="2">Not
Available</option>
</select>
</div>
</div> <!-- /form-group-->
</div>
<!-- /edit brand result -->
<script src="custom/js/brand.js"></script>