0% found this document useful (0 votes)
31 views30 pages

STOCKMAINTENANCESYSTEM

The document describes a stock management system including UML diagrams and descriptions. It outlines use cases for maintaining books, purchase orders, viewing stock, and generating reports. It also describes the actors and flows for key use cases like login, maintaining books, and purchase orders.

Uploaded by

Jitesh Shelke
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views30 pages

STOCKMAINTENANCESYSTEM

The document describes a stock management system including UML diagrams and descriptions. It outlines use cases for maintaining books, purchase orders, viewing stock, and generating reports. It also describes the actors and flows for key use cases like login, maintaining books, and purchase orders.

Uploaded by

Jitesh Shelke
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 30

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/328382291

Stock Management System - UML Diagrams and Short Description

Presentation · October 2018


DOI: 10.13140/RG.2.2.22239.71848

CITATIONS
READS
0
14,389

1 author:

Suhaib Bin Younis


SRM Institute of Science and Technology
11 PUBLICATIONS 5 CITATIONS

Some of the authors of this publication are also working on these related projects:

eLab SRM CARE View project

Tour Management View project

All content following this page was uploaded by Suhaib Bin Younis on 19 October 2018.

The user has requested enhancement of the downloaded file.


Ex.No:
STOCK MAINTENANCE SYSTEM
Date:

1. Problem analysis and project planning


1.1 Introduction
The stock maintenance system is basically for the customers who
access the information about the stock (here it is books in the book store)
and retrieves the information.

1.2 Objectives

The purpose of the document is to define the requirements of the stock


maintenance system. This supplementary specification lists the requirements
that are not readily captured in the use cases of the use case model. The
supplementary specification & the use case model together capture a
complete set of requirement on the system.

1.3 Scope

This supplementary specification applies to the stock maintenance


system. This specification defines the non-functional requirements of the
system, such as reliability, usability, performance and supportability as well
as functional requirements that are common across a number of use cases.

1.4 Problem Statement

A new stock maintenance system for a book store is to replace the


existing maintenance system which is in efficient. The new stock
maintenance system will allow the employee to record information of the
nooks available in the book store and generate report based on the total
amount of sales.

http://
The new system will has a windows based desktop interface to allow
employee to enter the information of sale, purchase orders, change employee
preferences and create reports. Employee can only access the information
and purchase orders for security purpose.

The system retains information on all the books in the shop. The
system retains the records of the cost, edition, author, publication of the
books. The employee maintains the information of the sale of books. He can
add the books at right time and update the database.

The customer can view the availability of the required books and the
price of the books. The customer can just view them but cannot make any
changes.

http://
2. Problem statement (Use case) analysis

2.1 Identified use cases

i Login:

It is a transaction performed by the user when he wishes to the stock


maintenance system.

ii Maintain Books:

It is a transaction performed by the employee when he wishes to add,


change and/or delete books information from the system.

iii Purchase orders:

It is a transaction performed by the manager when he wishes to create,


change or delete purchase orders.

iv View Stock:

It is a transaction performed by the manager when he wishes to view


the books available in the stock maintenance system.

v View report:

It is a transaction performed by the administrator when he wishes to


view the report generated after all the stock update.

http://
2.2 Identified Actors

i Employee:

The employee can add, change and/or delete the information from the
system.

ii Customer:

The customer can just view the books available in the system.

iii Manager:

The manager can create, change or delete purchase orders.

iv Administrator:

The administrator maintains all the database and reports. He is


responsible for changing the information of database and takes care of the
payment and administrative reports.

v Database

The database is the collection of data where the data is stored and
form where the data can be retrieved.

http://
2.3 Use Case Diagram:

Maintain books
Employee

Login
Manager Database

Purchase order

View report
Administrator

View stock
Customer

http://
3. Design of Stock Maintenance System
3.1 Design Documentation

1. Login

1.1 Brief description:

This use case describes how a user logs into the stock maintenance
system.

1.2 Flow of events:

1.2.1 Basic flow:

This use case starts when the actor wishes to login to the stock
maintenance system.

1. The system requests that the actor enter the name and password.
2. The actor enters their name and password.
3. The system validates the entire name and password and logs
the actor into the system.

1.2.2 Alternative flow:

1. If in the basic flow, the actor enters an invalid name and


password the system display an error message.
2. The actor can choose to either return to the beginning of the
basic flow or cancel the login at which point the use case ends.

1.3 Pre Conditions:

None

http://
1.4 Post Conditions:

If the use case successful the actor is now logged in the system, if not
the system state is unchanged.

2. Maintain Books

2.1 Brief description:

The use case describes how employees maintains book in the


system.

2.2 Flow of events:

2.2.1 Basic flow:

1. The system requests that the employee specify the function


he/she would like to perform (add, update or delete). Once the
employee provides requested information, one of the sub-flow
is executed.
2. If the employee selected ‘add book’ then add book sub-flow is
executed.
3. If the employee selected ‘update book’ then update book sub-
flow is executed.
4. If the employee selected ‘delete book’ then delete book sub-
flow is executed.

2.2.1.1 Add Books

1. The system requests the employee to enter the books


information. This include its edition, author name, publication.
2. Once the information is provided the system generates and
assigns a unique book-id number.

http://
2.2.1.2 Update Books

1. The system requires entering id.


2. The employee enters the id, the system retrieves and displays
book information.
3. The employee makes desired changes to the book information.
4. Once the employee updates information the system updates the
book information.

2.2.1.3 Delete Books

1. The system specifies to enter id of the book.


2. The employee enters the id, the system retrieves and displays
book information.
3. The system provides employee to confirm deletion of the
books.
4. The employee verifies deletion.
5. The system deletes the books specified.

2.2.2 Alternative flow:

i. Book not found:

1. If in update books or delete books sub flow the books with


specified id number does not exist, the system displays an error
message.
2. The employee can then enter different id number or cancel the
operation at which point the use case ends.

ii Delete Cancelled:

If information the delete books sub-flow the employee decides not to


delete the book, the delete is cancelled and the basic flow is restarted at the
beginning.

2.3 Pre Condition:

The employee logs in to the system.

http://
2.4 Post Condition:

If the use case is successful, the employee maintains books


successfully else the system is unchanged.

3. Purchase Orders

3.1 Brief description:

This use case describes how the manager provides orders for new
stock in the stock in the stock maintenance system.

3.2 Flow of events:

3.2.1 Basic flow:

This use case starts when the manager wishes to record and maintain
purchase orders. This includes adding, changing, and deleting purchase
orders.

1. The system requests that the manager specify the function


he/she would like to perform (add, change or delete).
2. Once the manager provides the required information; one of the
sub flow is executed.
3. If the manager selected creates purchase order, it is executed.
4. If the manager selected change purchase order, the sub flow is
executed.
5. If the manager selected delete purchase order then that sub flow
is executed.

3.2.1.1 Create Purchase Orders

1. The system requests the manager to enter the purchase order


information; this includes the name of the book, quantity, and
edition.
2. Once the information is provided, the system generates and
assigns an order number.

http://
3.2.1.2 Change Purchase Orders

1. The system requests to enter the order number.


2. The manager enters the id number; the system retrieves and
displays the information.
3. The manager makes the desired changes to the orders.
4. The system updates the information.

3.2.1.3 Delete Purchase Orders

1. The system requests the manager to enter the id number.


2. The manager enters the number; the system retrieves and
displays information.
3. The system provides manager to confirm deletion of orders.
4. The manager verifies deletion.
5. The system deletes the orders specified.

3.2.2 Alternative flow:

i. Purchase Order not found:

If in the change order or delete purchase order sub-flows, the purchase


order with specified id number does not exist, the system displays an error
message the manager can then enter a different number or cancel the
operation at which point the use case ends.

ii. Cancel Deleted:

If in the delete purchase order sub-flow the manager decides not to


delete the purchase order, the delete is cancelled and basic flow is started at
the beginning.

3.3 Pre Condition:

The manager logs on the system.

http://
3.4 Post Condition:

If the use case is successful the manager makes the purchase orders
else the system is unchanged.

4. View stock

4.1 Brief description:

This use case describes how the customer views the stock
maintenance system.

4.2 Flow of events:

4.2.1 Basic flow:

This use case starts when the customer wishes to view the books
available in the system.

1. The system requests to customer to enter the details (author,


name, publication, and edition) of the book required.
2. Once the information is provided the system displays the book
information.

4.2.2 Alternative flow:

1. If in the basic flow the book specified is not found the system
displays an error message.
2. The customer can enter the different book detail or cancel the
operation at which point the use case ends.

4.3 Pre Condition:

None

4.4 Post Condition:

If the use case was successful the customer is provided with the
information if not the system state is unchanged.

http://
5. View Report

5.1 Brief description:

This use case describes how the administrator views the reports in the
stock maintenance system.

5.2 Flow of events:

5.2.1 Basic flow:

This use case starts when the administrator wishes to view the report
generated after tall the stock update.

1. The system specifies the administrator to enter his id.


2. Once the administrator is provided, the system retrieves and
displays the report.
3. The administrator is provided; the system retrieves and displays
the report.

5.2.2 Alternative flow:

1. If the id is incorrect the system displays an error message.


2. The administrator can either re-enter the correct id or else he
can cancel the operation at which point the use case ends.

5.3 Pre condition:

The administrator logs on the system.

5.4 Post condition:

If the use case is successful, the administrator views the report, if not,
the system report is unchanged.

http://
SEQUENCE DIAGRAM:
1. Login

: Customer Main form Login form Login Welcome Error message : Database
controller screen
login( )

Enter username and password( )

Verification( )

Retrieve from database( )

Valid( )

Invalid( )

Displays error message( )

re-login( )

http://
2. View Reports

: Administrator main form controller error message


: Database

request ID( )

Enter ID( )

Verification( )

Valid( )

Generate report( )

Invalid( )

Displays error message( )

re-enter ID( )

http://
3. View Stock

Controller Error message


: Customer : Administrator : Database

request book details( )

Enter book details( )

Verify( )

Verified( )

Generate report( )
not filled properly( )

error message( )

4. Maintain Stock

option form book profile


: Employee
form

to avail options( )

add books( )

Sequence
diagram...
update books( )

Sequence
diagram...
delete books( )

Sequence
diagram-...

http://
4.1 Add

Selection modification Error message


: Employee form : Database
form
Request for new books( )

add new books( )

Verification( )

filled properly( )

Generate ID( )

Not filled properly( )

Error message( )

4.2 Modify

Selection Modification Modification Error message


: Employee form form controller : Database
Request to select books( )

Selecting books( )

intimate database( )

Retrieve datas( )

modify( )

Verification( )

improper modification( )

Displays error message( )

http://
4.3 Delete

Selection Deletion form


: Manager form : Database

Select order( )

retrieving datas( )

Deleting( )

update( )

5. Purchase Orders

option form order profile


: Manager
form

avail options( )

create orders( )

Sequence
diagram-...
change orders( )

Sequence
diagram...
delete orders( )

Sequence diagram-...

http://
5.1 Create Order

create order controller Error message


: Manager : Database
form
Request for new order( )

Create new order( )

Verification( )

filled properly( )

Generate ID( )

not filled properly( )

Error message ( )

5.2 Change Orders

order selection modification modification Error Message


: Manager form form controller : Database

Request to select order( )

Selecting order( )

intimate database( )

retrieve datas ()

modifying( )

Verification ( )

Improper modification ( )

Error message( )

http://
5.3 Delete Orders

Selection Deletion form


: Manager form : Database

Selecting order( )

retrieving datas( )

Deleting( )

Update ( )

COLLABORATION DIAGRAM:
1. Login
Mai
n
1: login( )
8: re-
login( ) 2: Enter username and password(
) Login
form

: Customer

7: Displays error message( ) 3: Verification( )

5: Valid(
Error Login ) Welcome
messag controller screen
e
6: Invalid(
)
4: Retrieve from database( )

: Database

http://
2. View Reports
2: Enter ID( )
8: re-enter ID( 3: Verification(
) )
main controller
form

1: request ID(
)
: Administrator

5: Generate report( )
4: Valid( )
7: Displays error message( )

: Database
error
message
6: Invalid( )

3. View Stock

Error
messa
2: Enter book details( 7: error message( )
: Customer )

1: request book details( )


5: Generate report( ) 6: not filled properly( )

3: Verify( )

: Administrator

4: Verified( )
Contr
: Database oll

http://
4. Maintain Stock
2: add books( )
3: update books( )
1: to avail options( 4: delete books( )
) option
form book profile
form

: Employee

4.1 Add
2: add new books( )
Selection
form
1: Request for new books( )
: Employee
5: Generate ID( )
7: Error message( ) 3: Verification( )

: Database
4: filled properly(
Error ) modificatio
message n form

6: Not filled properly( )

4.2 Modify
3: intimate database( )
Selecti
: Database
on1: Request to select books(
) 4: Retrieve datas( )
2: Selecting books(
) 5: modify(
) Modification
form

: Employee
8: Displays error message( ) 6: Verification( )

Error Modification
message controller
7: improper modification(
)

http://
4.3 Delete
1: Select the book( )
Selection form

: Manager

3: Deleting( ) 2: retrieving datas( )

4: update( )
Deletion form

: Database

5. Purchasing Orders
2: create orders( )
3: change orders( )
1: avail options( ) 4: delete orders( )
option form
order
profil

: Manager

5.1 Create Orders


2: Create new order( )
create order
form
: Manager 1: Request for new order(
)
5: Generate ID( )
7: Error message ( )
3: Verification( )

: Database
Error 4: filled properly( ) controll
message er
6: not filled properly( )

http://
5.2 Change Orders
3: intimate database( )
order selection
form
: Database
1: Request to select order(
4: retrieve datas ()

) 2: Selecting order( ) 5: modifying( )


modification
form

: Manager
8: Error message( ) 6: Verification ( )

error
modification
message
controller
7: Improper modification (
)
5.3 Delete Orders
1: Selecting order( )
Selection
form

: Manager
3: Deleting( ) 2: retrieving datas( )

4: Update ( )
Deletion form

: Database

http://
CLASS DIAGRAM:

1. Login
Main form
+1
login ()

+1

Welcome screen
Error Message Login Controller
+1 +1
correct()
verification() enter()
incorrect()

Login form

username()
password()
re-login()

2. Maintain Books

Add books Update books


book information
edition() enter id()
author name() change() update()
publication()

Delete books
retrieve details
confirm()
verify()
delete specified()

http://
3. Purchase Orders
Create purchase orders

assign order
name of the book() quantities() edition()

Delete purchase
Change purchase order order

request() confirm() deletion() displays()


Identify ID() desired changes() updates()

4. View stock & Report

view stock

verification()

book details report


books available administrator report

book required() enter hid ID()


book specification() displays() retrieves and displays() track(

http://
3.5 Component diagram

maintain view reports


books

Login

purchase view stock


orders

http://
SOURCE CODE

1. Login

Option Explicit

Public NewProperty As Welcome screen

Public NewProperty2 As Error message

Public Sub login()

End Sub

2. Maintain Books

Option Explicit

Private book_information As Variant

Public NewProperty As Update books

Public NewProperty2 As Delete

books Public Sub edition()

End Sub

Public Sub author_name()

End Sub

Public Sub publication()

End Sub

http://
3. Purchase Orders
Option Explicit

Private assign_order As Variant

Public NewProperty As Change purchase order

Public Sub name_of_the_book()

End Sub

Public Sub

quantities() End Sub

Public Sub

edition() End Sub

4. View stock
Option Explicit

Private books_available As

Variant Public NewProperty As

view stock Public NewProperty2

As report Public Sub

book_required()

End Sub

Public Sub book_specification()

End Sub

Public Sub displays()

http://

View publication
End Sub

http://

View publication

You might also like