Vous êtes sur la page 1sur 17

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.

in

INVENTORY MANAGEMENT SYSYTEM

UNDER THE GUIDANCE OF


MR. ANINDYA KISHORE SARBADHIKARY
Faculty Member: ARDENT COLLABORATION CF-137, Sector 1, SaltLake City, Kolkata-700064

DEPARTMENT OF B.TECH COLLEGE NAME GURU NANAK INSTITUTE OF TECHNOLOGY


157/F, Nilgunj Road, Panihati, Kolkata-700 114

NAMES OF THE GROUP MEMBERS


BALJIT SINGH ASHISH KUMAR GUPTA GAGANDEEP SINGH DHARMINDER SINGH ARUN KUMAR OJHA

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

ACKNOWLEDGEMENT
Through this column we wish to acknowledge our deep appreciation for the guidance rendered by Mr.Anindya Kishore Basu Sarbadhikary, respected faculty member of ARDENT COLLABORATION. His constant encouraging guidance, invaluable help and good wishes guided the project work to this stand. His assistance has been a thorough boost in improving our work to a finer extent. We are also grateful to all the faculty members and staffs of ARDENT COLLABORATION for constant help.

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

OBJECTIVE
The objective of our project is to make a computerized system to manage and control the resources and activities of ORDER SUPPLY so that the management of the ordering and delivering system of any company can be done in an efficient and smooth manner.

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

BRIEF DESCRIPTION OF THE PROJECT


As we discuss above the objective of our project will help any production company to manage its ordering and delivery system efficiently. There are so many companies in various production systems (mainly involved in ordering and delivering the product) across the globe. A lot of money is flowing in transactions involving these companies. Inventory Management System is a system that maintains and updates all the ordering and delivering records with monetary transaction. It will keep track of item description, selling rate of items, clients information, ordering and delivering information, invoices etc. It will be a fast guide to the details of a production company which can be viewed and updated instantly. This system will keep track of the details of each client and their demand for specific item. It also effectively manages the time of delivering the product. The system also keeps the account related information that includes payments.

The various modules or tables that are associated with this system are described as follows:

ITEM : This table contains the various information regarding the items
like the specific item id, item name and the stock number.

RATE : This table has the foreign key relationship with item table
through item id. This table also contains the rate of any particular item.

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

CLIENT : Client table contains the specific records of the clients.


Client no, clients name, address, phone number are the different attributes of this table.

ORDER : Order table contains the order number, client number, item
id, order quantity, order date i.e. the order related all sort of details.

INVOICE : This table contains different records like invoice number,


name of the client, item name, item quantity, rate of the item, absolute received amount, delivery date and the particular order number.

ORDER DETAILS : Order number and whether the order is


placed or not are stored here.

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

CONTEXT DIAGRAM

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

ENTITY-RELATIONSHIP DIAGRAM

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in Clno

Itemid

Itemname

clname

Item
Stock Ordno Clno

Address

Client

Phno

Order
Is sold by Itemid Is place dby

Quantity Is sold by

Ord_dt

Inventory Management System


Invno Rate Itemid Is determine dby Display s details Sends Quantity

clnam e

Rate

Invoice
Rate

Order details
Ordno

Abs_am t Del_dt Remark s

Itemname

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

TECHNICAL DETAILS

HARDWARE REQUIREMENTS:
1. Standard Desktop PC. (256MB RAM, 1 GB Free Space)

2. Printer

SOFTWARE REQUIREMENTS:
BACKEND TOOL:
Oracle 9i (SQL - PL/SQL)

OPERATING SYSTEM: Microsoft Windows XP.

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

BRIEF IDEA ABOUT THE SOFTWARE TOOLS


ORACLE 9i
Oracle Database (commonly referred to as Oracle RDBMS or simply Oracle) is a relational database management system (RDBMS) produced and marketed by Oracle Corporation. As of 2008, Oracle had become a major presence in database computing. Oracle9i Database provides efficient, reliable, secure data management for high-end applications such as high-volume on-line transaction processing (OLTP) environments, query-intensive data warehouses, and demanding Internet applications. Oracle also offers several additional optional database products that enhance the capabilities of Oracle9i Database for specific application requirements.

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

DATABASES
1. ITEM Name -------------------------------ITEMID ITEMNAME STOCK 2. RATE Name -------------------------------ITEMID RATE 3. CLIENT Name Null? ------------------------------------------------CLNO NOT NULL CLNAME ADDRESS PHNO 4. ORDER Name -------------------------------ORDNO CLNO ITEMID QUANTITY Null? -----------------NOT NULL Type -----------------------VARCHAR2 VARCHAR2 VARCHAR2 NUMBER Type -----------------------VARCHAR2 VARCHAR2 VARCHAR2 NUMBER Null? -----------------NOT NULL Type -----------------------VARCHAR2 NUMBER Null? -----------------NOT NULL Type -----------------------VARCHAR2 VARCHAR2 NUMBER

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in ORD_DT DATE

5. INVOICE Name -------------------------------INVNO CLNAME ITEMNAME QUANTITY RATE ABS_AMT DEL_DT ORDNO Null? -----------------NOT NULL Type -----------------------VARCHAR2 VARCHAR2 VARCHAR2 NUMBER NUMBER NUMBER DATE VARCHAR2

6. ORD_DETAILS Name -------------------------------ORDNO REMARKS Null? -----------------NOT NULL Type -----------------------VARCHAR2 VARCHAR2

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

DATA DICTIONARY
ITEM : Details = ITEMID + ITEMNAME + STOCK. Updated Details =
ITEMID = string. ITEMNAME = string. STOCK = digit+digit+up to 20digit.

RATE : Details = ITEMID + RATE. Updated Details = CLIENT : Details =


CLNO + CLNAME + ADDRESS + PHNNO. CLNO = string. CLNAME = string. ADDRESS = string. PHNNO = digit+digit+up to 20digit ITEMID = string. RATE = digit+digit+up to 20digit

Updated Details =

ORDER :

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

Details =

ORDNO + CLNO + ITEMID + QUANTITY+ ORD_DT ORDNO = string. CLNO = string. ITEMID = string. QUANTITY = digit+digit+........up to 20digit. ORD_DT = date.

Updated Details =

INVOICE : Details =
INVNO + CLNAME + ITEMNAME + QUANTITY +RATE + ABS_AMT + DEL_DT + ORDNO

Updated Details =

INVNO = string. CLNAME = string. ITEMNAME = string. QUANTITY = digit+digit+........up to 20digit. RATE = digit+digit+........up to 20digit. ABS_AMT = digit+digit+........up to 20digit. DEL_DT = date. ORDNO = string.

ORDER DETAILS : Details =


ORDNO + REMARKS ORDNO = string. REMARKS = string.

Updated Details =

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in

SQL-PL/SQL CODE
TABLE CREATION :
ITEM: create table item(itemid varchar2(20) primary key,itemname varchar2(20),stock number); RATE: create table rate(itemid varchar2(20) references item(item),rate number); CLIENT: create table client(clno varchar2(20) primary key,clname varchar2(20),address varchar2(50),phno number2(20)); ORDER: create table order(ordno varchar2(20) primary key,clno varchar2(20),itemid varchar2(20),quantity number,ord_dt date); INVOICE: create table invoice(invno varchar2(20),clname varchar2(20),itemname varchar2(20),quantity number,rate number,abs_amt number,del_dt date,ordno varchar2(20)); ORDER_DET:

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in create table ord_details(ordno varchar2(20),remarks varchar2(100));

SEQUENCE CREATION :
create sequence seitem start with 1 increment by 1; create sequence seclient start with 1 increment by 1; create sequence seorder start with 1 increment by 1; create sequence seinvoice start with 1 increment by 1;

TRIGGER CREATION : tr_item.sql


create or replace trigger item before insert on item for each row declare ch varchar2(40); begin select lpad(to_char(seitem.nextval),4,0) into ch from dual; :new.itemid:='I'||ch; end;

tr_order.sql
create or replace trigger tr_order before insert on order for each row declare ch varchar2(40); begin select lpad(to_char(seorder.nextval),4,0) into ch from dual; :new.ordno:='C'||ch; end;

tr_client.sql
create or replace trigger tr_client before insert on client for each row declare ch varchar2(40); begin select lpad(to_char(seclient.nextval),4,0) into ch from dual;

ABHISHEK CHOUDHARY Technology Sharing www.tech4urhelp.blogspot.in :new.clno:='C'||ch; end;

tr_invoice.sql
create or replace trigger tr_invoice before insert on invoice for each row declare ch varchar2(40); begin select lpad(to_char(seinvoice.nextval),4,0) into ch from dual; :new.invno:='IN'||ch; end;

tr2_item.sql
create or replace trigger tr2_order after insert on order for each row declare vstock item.stock%type; vrate rate.rate%type; vname client.name%type; vitemname item.itemname%type; begin select stock into vstock from item where itemid=:new.itemid; if vstock>=:new.quantity then insert into ordr_det values(:new.ordno,'ORDER SUCCESSFULLY PLACED'); update item set stock=vstock-:new.quantity where itemid=:new.itemid; select rate into vrate from rate where itemid=:new.itemid; select itemname into vitemname from item where itemid=:new.itemid; select name into vname from client where clno=:new.clno; if vname==null then insert into client (name,address,phnno) values ('&name','&address',&phnno); select name into vname from client where clno=:new.clno; end if; insert into invoice (clname,itemname,quantity,rate,abs_amt,del_dt,ordno) values(vname,vitemname,:new.quantity,vrate,:new.quantity*vrate, sysdate+7, :new.ordno); else insert into ordr_det values(:new.ordno,'ORDER CANCELLED'); end if; end;

Vous aimerez peut-être aussi