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

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

net/publication/307931035

Purchase Management System

Conference Paper · August 2016


DOI: 10.13140/RG.2.2.14202.49608

CITATIONS READS
0 5,381

1 author:

Syed Hasan
Asia Pacific University of Technology and Innovation
21 PUBLICATIONS 5 CITATIONS

SEE PROFILE

All content following this page was uploaded by Syed Hasan on 09 September 2016.

The user has requested enhancement of the downloaded file.


CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

Table of Contents
INTRODUCTION ......................................................................................................................4

OBJECT ORIENTED MODEL...................................................................................................5

CLASS DIAGRAM ................................................................................................................5

USE CASE..............................................................................................................................6

ACTIVITY .............................................................................................................................7

STATE MACHINE .................................................................................................................8

OBJECT ORIENTED CONCEPT ...............................................................................................9

CLASSES ...............................................................................................................................9

Employee Class ...................................................................................................................9

Description ........................................................................................................................ 10

Item Class ......................................................................................................................... 10

Description ........................................................................................................................ 11

Supplier Class ................................................................................................................... 12

Description ........................................................................................................................ 12

OBJECTS ............................................................................................................................. 13

Employee Object ............................................................................................................... 13

Description ........................................................................................................................ 13

Item Object........................................................................................................................ 13

Description ........................................................................................................................ 14

Supplier Object.................................................................................................................. 14

Description ........................................................................................................................ 14

FUNCTIONS ........................................................................................................................ 15

Display Supplier Function ................................................................................................. 15

.......................................................................................................................................... 15

1
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

Description ........................................................................................................................ 15

Function Prototype ............................................................................................................ 15

Description ........................................................................................................................ 16

ENCAPSULATION .............................................................................................................. 16

Description ........................................................................................................................ 16

SAMPLE OUTPUTS ................................................................................................................ 17

MAIN MENU ....................................................................................................................... 18

Description ........................................................................................................................ 18

USER SELECTION .............................................................................................................. 19

Description ........................................................................................................................ 19

USERS.................................................................................................................................. 20

Description ........................................................................................................................ 20

ADD PR ................................................................................................................................ 21

Description ........................................................................................................................ 21

EDIT PR ............................................................................................................................... 22

Description ........................................................................................................................ 22

DELETE PR ......................................................................................................................... 23

Description ........................................................................................................................ 23

ADD ITEM ........................................................................................................................... 24

Description ........................................................................................................................ 24

EDIT ITEM........................................................................................................................... 25

Description ........................................................................................................................ 25

NEW EMPLOYEE ............................................................................................................... 26

Description ........................................................................................................................ 26

VIEW ITEM ......................................................................................................................... 27

2
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

Description ........................................................................................................................ 27

ADD SUPPLIERS ................................................................................................................ 28

.......................................................................................................................................... 28

Description ........................................................................................................................ 28

EDIT SUPPLIER .................................................................................................................. 29

Description ........................................................................................................................ 29

DELETE SUPPLIER ............................................................................................................ 30

Description ........................................................................................................................ 30

VIEW SUPPLIER ................................................................................................................. 31

Description ........................................................................................................................ 31

VIEW PR .............................................................................................................................. 32

Description ........................................................................................................................ 32

VIEW ORDER...................................................................................................................... 33

Description ........................................................................................................................ 33

ADD ORDER ....................................................................................................................... 34

Description ........................................................................................................................ 34

EDIT ORDER ....................................................................................................................... 35

Description ........................................................................................................................ 35

DELETE ORDER ................................................................................................................. 36

Description ........................................................................................................................ 36

DELETE ITEM ..................................................................................................................... 37

Description ........................................................................................................................ 37

LIMITATIONS ......................................................................................................................... 38

CONCLUSION ......................................................................................................................... 39

REFERENCES ......................................................................................................................... 40

3
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

INTRODUCTION
We are in tech era where almost all the manual system is being transformed to digital for the sake
of human needs. Peoples are moving to digitalized life for better safety and enhancement in their
daily livings. As the technology is developing significantly, peoples are forming themselves to
more tech savvy compare to any previous time. From the personal to working life technology has
been taken an important necessary steps to overcome the unforeseen situations. Even the
wholesaler also changing its business term from hands on to automation.

One of the example we can give here is TRANSYSLOGICS SDN BHD (TSB) which is one of
the emerging wholesaler emerging on selling everyday groceries, fresh produce and fresh foods to
various retailers all over Malaysia. Currently there business is growing so they need to change
their business pattern from manual to automation where they will be able to maintain their
purchases more efficiently. The employees those are going to involve with the system are purchase
manager, sale manager and admin himself. Sales manager will raise the purchase requisition
whereas purchase manager will raise the purchase order based on purchase requisition. On the
other hand administrator are responsible for controlling all the functionalities of the system as well
as registering new employees. This wholesale company wants to implement the new POM system
developed with C++ programming language focusing on object oriented development.

Below we will show how we are going to implement the OOP (Object Oriented Development)
concept while developing the system for TRANSYSLOGICS SDN BHD (TSB). We will provide
UML (Uniform Modelling Language) Class diagram along with the interfaces of how it will looks
like after we develop.

We will also add some limitations of the system so that we can fix the limitations and develop the
better application in future.

4
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

OBJECT ORIENTED MODEL


CLASS DIAGRAM

5
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

USE CASE

6
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

ACTIVITY

7
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

STATE MACHINE

8
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

OBJECT ORIENTED CONCEPT


CLASSES
Employee Class

9
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

Description
Above is our employee class where we declared employee name, password and role as a private
data type. And from public we can call their name, password and role using getter and setter.

Item Class

10
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

Description
Above is our item class where we declared item name, item code, and supplier name, date, date1,
price and quantity as a private data type. And from public we can call their item name, item code,
and supplier name, date, date1, price and quantity using getter and setter.

11
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

Supplier Class

Description
Above is our item class where we declared supplier id, supplier name and item id as a private data
type. And from public we can call their supplier id, supplier name and item id using getter and
setter.

12
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

OBJECTS
Employee Object

Description
From the above figure it shows for registering new employee through the system we have created
an object of employee class which is “Emp e1”. Using this object we can call getter and setter
which is inside employee classes into “void newemployee()”.

Item Object

13
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

Description
From the above figure it shows for adding purchase order through the system we have created an
object of item class which is “ITEM i1”. Using this object we can call getter and setter which is
inside ITEM classes into “void Admin_Add_PO()”.

Supplier Object

Description
From the above figure it shows for adding suppliers through the system we have created an object
of Supplier class which is “Supplier s1”. Using this object we can call getter and setter which is
inside Supplier classes into “void newsupplier()”.

14
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

FUNCTIONS
Display Supplier Function

Description
From the above figure it shows for editing supplier we can call the functions “Display_Supp()”
which will show all the supplier list from text file. According to the supplier list users can edit the
supplier details through the system.

Function Prototype

15
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

Description
From the above figure it shows the function prototype we declared on header file. Later for
accessing this function prototype we have to use “void function{}” .

ENCAPSULATION

Description
From the above figure it shows the implementation of encapsulation inside the classes using public
and private.

16
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

SAMPLE OUTPUTS
In this section we will show each and every users interaction to the system. Before we describe
further below are the listed user’s interactions to the system:

Sales Manager

 Add Item
 Edit Item
 Delete Item
 Add Suppliers
 Edit Suppliers
 Delete Suppliers
 Add Purchase Requisition
 Edit Purchase Requisition
 Delete Purchase Requisition
 View Requisition
 View Purchase Order

Purchase Manager

 View Items
 View Suppliers
 View Purchase Requisition
 Add Order
 Edit Order
 Delete Order
 View Order

Admin

Admin can access all the panels. And as an extra he can create new user for the system.

Here we will show some of the important output of the system.

17
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

MAIN MENU

Description
Above is our main menu of the POM application using command prompt. Here we have to options
and are login or exit. Users need to choose from the menu to continue the system operation.

18
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

USER SELECTION

Description
Above is our user selection menu. From here user need to select their preference for accessing the
system. Besides, they can also choose to go back to main menu by pressing 2.

19
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

USERS

Description
Above is our user’s panel. From here user need to select according to their role in the system. After
they select they need to enter their username and password for accessing the system.

20
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

ADD PR

Description
Above is our adding purchase requisition panel by sales manager. Here sales manager need to enter
all the details of the item including the supplier id.

21
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

EDIT PR

Description
Above is our edit purchase requisition panel by sales manager. Here sales manager need to enter
new date for the item require to receive. After updating sales manager need to check view
requisition so that he can see the updated item list.

22
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

DELETE PR

Description
Above showing delete PR panel. From here users can delete requisition from the list.

23
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

ADD ITEM

Description
Above is our add item panel by sales manager. Here sales manager need to enter details following
the purchase order list. After that the new item will be added into the stock list.

24
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

EDIT ITEM

Description
Above showing the updated item details after editing the quantity. The previous screen shows the
quantity of the ABC was 60 whereas the updated one is 90.

25
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

NEW EMPLOYEE

Description
Above showing the new employee registration panel use by admin.

26
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

VIEW ITEM

Description
Above showing the list of item from our current stock.

27
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

ADD SUPPLIERS

Description
Above the current list of suppliers. After adding the new suppliers the system will show the
updated suppliers list.

28
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

EDIT SUPPLIER

Description
Above the current list of suppliers. After adding the new suppliers the system will show the
updated suppliers list.

29
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

DELETE SUPPLIER

Description
Above showing the current list of suppliers. After searching for specific supplier id, users can
delete the suppliers from supplier list.

30
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

VIEW SUPPLIER

Description
Above showing the current list of suppliers.

31
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

VIEW PR

Description
Above showing the current list of purchase requisition.

32
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

VIEW ORDER

Description
Above showing the current purchase order list.

33
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

ADD ORDER

Description
Above showing the newly added purchase order.

34
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

EDIT ORDER

Description
Above shows the editing panel for purchase order. After editing the newly created of purchase
order will show the system.

35
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

DELETE ORDER

Description
Above shows deleting panel for purchase order records.

36
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

DELETE ITEM

Description
Above showing the deleting panel for item stock. After successful deleting the current stock will
show the system.

37
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

LIMITATIONS
Although this system will support TSB for maintaining their sales management it has some
limitations too. This system will allow one purchase manager to edit another purchase manager’s
entry. At the same time the login system is static. It doesn’t authenticate based on users details
from text file. We didn’t add any inheritance and polymorphism while coding the system. Besides,
the user input haven’t validate successfully.

38
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

CONCLUSION
Although the system has some limitations at the end it will relief employee from doing paper works
to maintain their overall sales. It will help TSB to run their wholesaling business more smoothly
than any previous time.

39
CT025-3-2-PCPP INDIVIDUAL ASSIGNMENT UC2F1511SE

REFERENCES

cplusplus, 2000. cpluscplus. [Online]


Available at: http://www.cplusplus.com/doc/tutorial/files/
[Accessed 19 August 2016].

cprogramming, 1997. cprogramming. [Online]


Available at: http://www.cprogramming.com/tutorial/lesson10.html
[Accessed 19 August 2016].

learncpp, 2015. learncpp. [Online]


Available at: http://www.learncpp.com/cpp-tutorial/136-basic-file-io/
[Accessed 18 August 2016].

tenouk, 2016. tenouk. [Online]


Available at: http://www.tenouk.com/Module19.html
[Accessed 19 August 2016].

tutorialcup, 2016. tutorialcup. [Online]


Available at: https://www.tutorialcup.com/cplusplus/files-streams.htm
[Accessed 18 August 2016].

40
View publication stats

You might also like