Inventory Management System DBMS Project

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

LOVELY PROFESSIONAL UNIVERSITY

SECOND YEAR PROJECT


ON
INVENTORY MANAGEMENT SYSTEM
SUBJECT CODE- INT306
SUBMITTED BY
ABHAY KUMAR SINGH
ROLL NUMBER - 3
REGISTRATION NUMBER – 12111833
K21HP

School of computer science and engineering

Lovely professional university

Phagwara ,Punjab (india)


REPORT CONTENTS
1. Introduction
1.1 Objective of the project
1.1.1 Primary Objective
1.1.2 Secondary Objective
1.2 Description of the project
1.3 Scope of the project
2. System Description
2.1 Customer/User Profiles
2.2 Assumptions and Dependencies
3. Design
3.1 Database design
3.1.1 E-R diagram
3.1.2 Detail of schemas
4. Project Snapshots and Complete Code

1.INTRODUCTION

An inventory management system is the combination of


technology (hardware and software) and processes and
procedures that oversee the monitoring and maintenance of
stocked products, whether those products are company assets, raw
materials and supplies, or finished products ready to be sent to
vendors or end consumers.
This system can widely be used by normal shops, departmental
stores or MNCs for keeping a proper track of the stock. It also
consists of information like manager details, customer details etc.
With the help of this system we can fix a minimum quantity of
any inventory below which we need to place an order for that
inventory. This will help us in good sales results and never the out
of stock stage for any inventory.

1.1 OBJECTIVE OF THE PROJECT


INVENTORY MANAGEMENT SYSTEM must tie together the
following objectives ,to ensure that there is continuity between functions :
Company’s Strategic Goals
Sales Forecasting
Sales & Operations Planning
Production & Materials Requirement Planning.
Inventory Management must be designed to meet the dictates
of market place and support the company’s Strategic Plan . The
many changes in the market demand , new opportunities due to
worldwide marketing , global sourcing of materials and new
manufacturing technology means many companies need to
change their Inventory Management approach and change the
process for Inventory Control .

Inventory Management system provides information to


efficiently manage the flow of materials , effectively utilize people
and equipment , coordinate internal activities and communicate with
customers . Inventory Management does not make decisions or
manage operations, they provide the information to managers who
make more accurate and timely decisions to manage their operations.

1.1.1 PRIMARY OBJECTIVE


The primary objectives of the project are mentioned below:
1)To fulfill the requirement for achieving the Bachelor’s degree of
Technology.
2)To know the fundamentals of the SQL/PLSQL and Oracle.
1.1.2 SECONDARY OBJECTIVE
The secondary objectives of this project are mentioned below:
1)To develop an application that deals with the day to day requirement of
any production organization and to develop the easy management of the
inventory
2)To handle the inventory details like sales details, purchase details and
balance stock details.
3)To provide competitive advantage to the organization.
4)To provide details information about the stock balance.
5)To make the stock manageable and simplify the use of inventory in the
organization.

1.2 DESCRIPTION OF THE PROJECT


Inventory management helps companies identify which and
how much stock to order at what time. It tracks inventory
from purchase to the sale of goods. The practice identifies
and responds to trends to ensure there’s always enough
stock to fulfill customer orders and proper warning of a
shortage. Once sold, inventory becomes revenue. Before it
sells, inventory (although reported as an asset on the balance
sheet) ties up cash. Therefore, too much stock costs money
and reduces cash flow. One measurement of good inventory
management is inventory turnover. An accounting
measurement, inventory turnover reflects how often stock is
sold in a period. A business does not want more stock than
sales. Poor inventory turnover can lead to deadstock, or
unsold stock.

1.3 SCOPE OF THE PROJECT

• This will help us in maintain the exact count of any product.


• Can help us to set minimum quantity of any product below which
we can order the product from manufacturer.
• Can reduce duplicate entries

2 SYSTEM DESCRIPTION
2.1 Customer/User Characteristics: Every
user should be:
• Comfortable with computer
• Should have knowledge of internet explorer
• They must also have basic knowledge of English too.

2.2 Assumptions and Dependencies


• We assume that the Office personnel do all the data entry based and
the correct values obtained from forms and registers.
• We assume that the computers that will use the software will be part of
the having proper platform to run it.
• Users with administrator access should be careful in deleting or
modifying any information knowingly or unknowingly which will lead to
inconsistency of the database.
• The end users of this software are assumed to have basic level of
computerknowledge i.e. point and click.
3.DESIGN
3.1 DATABASE DESIGN

3.1.1 E-R DIAGRAM:

3.1.2 DETAIL OF SCHEMAS:

>Brands ( bid , brand_name)


>Inv_user ( id , name , password ,last_login , user_type)

>Categories ( cid , category_name)

>Product ( cid , bid , pid , p_name , p_stock , price )

>Stores ( sid , sname , address , mobno)

<Provides (bid , sid , discount)

>Customer_cart ( cust_id , name , mobno)

>Select_product (cust_id , pid , quantity)

>Transaction (id , total_amount , pid , due ,gst , discount ,


payment_method ,
>cart_id)

>Invoice (id , product_name , quantity , user_id)


4.1 PROJECT SNAP SHORTS AND COMPLETE CODE:
1. Here we created table brands
Here we created and inserted values in the table brands :

create table brands( bid


int primary key,
bname varchar2(20)
);

insert into brands (bid,bname) values('1','apple')


insert into brands (bid,bname) values('2','samsung')
insert into brands (bid,bname) values('3','redmi')
insert into brands (bid,bname) values('4','one plus')

select * from brands


2. here we created

table inv_user :
created

Here we created and inserted the values into the table inv_users:

create table inv_user(


user_id int primary key,
name varchar2(20),
password varchar2(20),
last_login timestamp,
user_type varchar2(20)
);

insert into inv_user (user_id,name,password,last_login,user_type)


values('rama@gmail.com','ramakrishna','ramakrishna','30-oct-2022','manager')
insert into inv_user (user_id,name,password,last_login,user_type)
values('david@gmail.com','david','david','30-oct-2022','employee')

select * from inv_user


3. here we table categories :
4. here we created

Here we created table and inserted the values into the table categories:

create table categories( cid


int primary key ,
category_name varchar(20)
);

insert into categories(cid,category_name) value('1','clothing') insert


into categories(cid,category_name) value('2','grocery')

select * from categories


table stores:
created

Here we inserted the values into the table stores:


create table stores(
sid int primary key,
6. here we created

sname varchar(20),
address varchar(20),
mobno number(10)
);

insert into stores(sid,sname,address,mobno) values('2','ramakrishna','chennai','9923191235')


insert into stores(sid,sname,address,mobno) values('3','krishnareddy','hyderabad','9747838493')

select * from stores


5. here we created table product :

Here we created and inserted the values in the table product :


create table product( pid number(5) int primary key, cid number(5), bid number(5), sid
number(5), pname varchar(20), p_stock number(5), price number(5), added_date date);
8. here we create

insert into product(pid,cid,bid,sid,pname,p_stock,price,added_date) values('2','1','1','1','airpods','3','19000','27-


april-2022')
insert into product(pid,cid,bid,sid,pname,p_stock,price,added_date) values('3','1','1','1','smart
watch','3','25000','21-oct-2022')
insert into product(pid,cid,bid,sid,pname,p_stock,price,added_date) values('4','2','3','2','air max','6','50000','03-
jan-2022')
insert into product(pid,cid,bid,sid,pname,p_stock,price,added_date) values('5','3','4','3','refined oil','6','750','13-
jul-2022')

select * from product


table provides :
9. here we create table

Here we created and inserted the values in the table provides :

create table provides(


bid int primary key,
sid number(5),
discount number(5)
);
insert into provides(bid,sid,discount) values('1','1','12')
insert into provides(bid,sid,discount) values('2','2','7')
insert into provides(bid,sid,discount) values('3','3','15')
insert into provides(bid,sid,discount) values('1','2','7')
10. here we create

insert into provides(bid,sid,discount) values('4','2','19')


insert into provides(bid,sid,discount) values('4','3','20')

select * from provides


customer_cart :

Here we created and inserted the values in the table customer_cart:


create table customer_cart( cust_id int primary key, name varchar(20), mobno number(20)
);
11. here we create table

insert into customer_cart(cust_id,name,mobno) values('122','rama','9208282902')


insert into customer_cart(cust_id,name,mobno) values('767','krishna','9239486574')
insert into customer_cart(cust_id,name,mobno) values('567','reddy','6574823902')

select * from customer_cart


12. here we create table

select_product :
13. here we create table

Here we created and inserted the values in the table select_product :


create table select_product(
cust_id int primary key, pid
number(5), quantity
number(4)
);

insert into select_product(cust_id,pid,quantity) values('122','3','1')


insert into select_product(cust_id,pid,quantity) values('345','5','1')
insert into select_product(cust_id,pid,quantity) values('122','1','1')

select * from select_product


transactions :
14.

Here we created and inserted the values in the table transactions:


create table transactions(
id intprimary key,
total_amount
number(5), paid
number(5), due
number(5), gst
number(5),
discount_method varchar(10),
cart_id number(5) references customer_cart(cust_id)
);

insert into transactions(id,total_amount,paid,due,gst,discount_method)


values('122','1900','1700','2000','10%','11%,)
insert into transactions(id,total_amount,paid,due,gst,discount_method)
values('233','1800','1600','2000','15%','14%,)
insert into transactions(id,total_amount,paid,due,gst,discount_method)
values('344','1700','1500','2000','20%','20%,)
insert into transactions(id,total_amount,paid,due,gst,discount_method)
values('455','1600','1400','2000','25%','5%,)
15. here we create table

select * from transactions


here we create table invoice :
16.

Here we created and inserted the values in the table transactions:


create table invoice(
item_no int primary key,
product_name
varchar(5), quality
number(5),
transaction_id number(5) references transactions(id)
);

insert into invoice(item_no,product_name,quality,transaction_id) values('1','bike','1','1233') insert


into invoice(item_no,product_name,quality,transaction_id) values('2','watch','1','9010') insert into
invoice(item_no,product_name,quality,transaction_id) values('3','mobile','1','3452') insert into
invoice(item_no,product_name,quality,transaction_id) values('4','head phones','1','6692') select *
from invoice
CONCLUSION

In this project we developed a complete back end software in which we can


update the stock, modify stock, we can forecast the stock, generate invoice. From
this application we can get an update that if a particular inventory or stock is less
than the some pre-fixed quantity then it’ll be easy for the manager/owner to
reorder the product from supplier to overcome the “Out of Stock” stage. In
addition to this it can also help us to manage the warehouses, add warehouses
which can be proved as very useful feature.
We can have complete customer details which can help us to retrieve the
order details of regular customers.
From this program we can also keep a track of transactions performed by
different customers/clients. We can also get an idea that how much fund we
received from different payment methodologies.

You might also like