Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 71

CHAPTER ONE

1.0 INTRODUCTION

Inventory or stock refers to the goods and materials that a business holds for the ultimate

purpose of resale (or repair). Inventory management is a science primarily about specifying the

shape and percentage of stocked goods. It is required at different locations within a facility or

within many locations of a supply network to precede the regular and planned course of

production and stock of materials. Inventory management involves a retailer seeking to acquire

and maintain a proper merchandise assortment while ordering, shipping, handling, and related

costs are kept in check. It also involves systems and processes that identify inventory

requirements, set targets, provide replenishment techniques, report actual and projected

inventory status and handle all functions related to the tracking and management of material.

This would include the monitoring of material moved into and out of stockroom locations and

the reconciling of the inventory balances. It also may include ABC analysis, lot tracking, cycle

counting support, etc. Management of the inventories, with the primary objective of

determining/controlling stock levels within the physical distribution system, functions to balance

the need for product availability against the need for minimizing stock holding and handling

costs. Brynjolfsson, E., & Smith, M. D. (2000).

The Medical store management will make storing of the stock records, employee records,

purchase information, and customer information a lot easier. The supplier and sales information

in the database will automatically generate bills when the customer buys the medical items. The

bill history can be retrieved promptly. And reports will be generated based on different search

queries.
1
1.2 STATEMENT OF PROBLEM

The previous inventory management method is done manually. The person who is in charge of

inventory needs to spend a great deal of time each week to count inventory items. Obviously this

method was prone to human errors. If an order was placed for certain item which actually had

enough stock, redundant ordering became unnecessary. Furthermore, it became inefficient

sometimes when the person needs to check it again to maintain certain levels for each item,

especially after a busy weekend. The challenges mentioned above necessitate the need to

develop a medical store inventory management system to manage the day - to – day activities of

the inventory.

1.3 JUSTIFICATION OF STUDY

Some activities in inventory management such as printing and view of stock balance, issuing of

receipt and keeping of sales records can be made to be less time consuming and less stressful.

When inventory management is computerized, it become faster, more accurate, more saver and

all forms of inadequacies and irregularities in inventory management will be regularized.

1.4 AIM AND OBJECTIVES

The aim of this project is to design and develop a medical store inventory system for Danax

pharmacy Ibadan. The project objectives are stated below:

(a) To provide logical point of entry item information into inventory.

(b) To generate timely report for the management for decision making.

(c) To enable real time search of items availability.

(d) To develop a system that can keep track of product sales and inventory levels

(e) To develop a system that will receive items in to the store


2
1.5 SCOPE OF STUDY

The system accepts the general supermarket transactions plan such as taking care of customer

needs and also producing proofs of product that has been purchased. It will provide more

efficient checkouts, less chance of errors by users of the program designed. It will enhance the

ability to monitor the performance of staff operations and keeping records of sales and services it

implemented.

1.6 METHODOLOGY

For the successful completion of this project I went to the internet to search for information and I

was able to get some vital one, I took the proposal to my supervisor and he helps to do some

correction then he told me to proceed. Then I went to Dana pharmaceutical store to conduct

interview with the staffs and their opinions formed a major basis for the development of this

project.

The information I got from my case study was use for system design and HTML was use for the

design which was later taken to my supervisor for correction and at the end of each progress my

supervisor was shown to give his consent.SQL is use for the backup.

PHP is used to create program and MYSQL is used to create and maintained the database.

1.7 DEFINITION OF TERMS

System: complex whole formed from related parts; a combination of related parts organized into

a complex whole

Manual: It is an act of working with the hands.

Search: To examine thoroughly in order to find something.

3
Administrator: This is a person whose job is to manage and organize public affairs of a

company or an institution.

GUI: Graphical user interface.

Software: They are set of instruction that ensure the proper functioning of computer

World Wide Web: This is an internet multimedia service that contains a vast storehouse of

hypertexts document written using Hypertext Markup Language (HTML).

Domain Name System: This is a distributed database containing hostname and IP address

information.

Browser: A program runs on the client that is used to look at and navigate various kinds of

internet resources.

Barner Advert: Is a means of marketing in a site by placing millboards on the site.

Register: This simply means to record your name on an official list.

Database: This is a system intended to organize, store, and retrieve large amount of data easily.

Software: This is a computer programs or instructions that cause the hardware to do work.

Hardware: This is a device and equipment that make up a computer system as opposed to the

programs used on it.

Algorithm: This is the step by step procedure used in solving computer problems

Flowchart: This is the diagrammatic presentation of data

Compilation: This is the act of getting the program compiled.

Web Page: This is a document or information resource that is suitable for the world wide web

Information System: Is the combination of information technology and people’s activities that

supports operations, management and decision making.

4
Website: Is a set of related web pages containing content such as text, graphics etc

PHP: This acronym means Hypertext Preprocessor.

Module: Is a unit of computer program or system that has a particular function.

Macromedia Dreamweaver 8: This is an application program that is used in developing and

designing a dynamic website.

Wamp Server: Is a web development platform on Windows allowing you to create dynamic

web applications with Apache, MySQL, PHP and a MySQL database.

Computer: Is a machine that performs tasks, such as calculations or electronic communication,

under the control of a set of instructions called a program.

Macromedia Fireworks: Is an application program used in designing graphics, images, texts

e.t.c that will be used in developing a dynamic site.

Script: Is a series of instructions for a computer.

Programs: Is a set of instructions in code that control the operations of a computer.

Text Box: Is a widget that can be used to display or edit unformatted text.

Form: Is a shape, visual appearance or configuration of an object.

Check Box :Is a graphical user interface widget that permits user to make multiple selections

from a number of options

Radio Button: Is a widget that permits user to make one choice from a number of options.

Inventory: Is the goods and materials that a business holds for the ultimate purpose of resale

Stock: Are goods or merchandise kept on the premises of a shop or warehouse available for sale

or distribution

Store: Is a quantity or supply of something kept for use as needed

Pharmaceutical: Is relating to medicinal drugs or their preparation, use or sales

5
Management: Is the process of dealing with or controlling things or people

6
CHAPTER TWO

LITERATURE REVIEW

2.0 INTRODUCTION

This chapter reviews literature that related to the study. The review is done under three main sub-

headings: conceptual framework, theoretical framework and review of empirical study. There is

of course the summary of the literature review.

CONCEPTUAL FRAMEWORK

 Concept of inventory management

 Concept of systems of inventory management

 Concept of the major variables just in time (JIT) inventory system

THEORETICAL FRAMEWORK

 Computerized Information System

 Business Enterprise

REVIEW OF EMPIRICAL STUDIES

 Materials requirement planning (MRP) supplies

 Levels of customer satisfaction

 Perpetual inventory cost control

7
2.0.1 INVENTORY MANAGEMENT

Inventory is defined as materials and supplies that a business or institution holds either

for sale or to provide input or supplies to the production process (Arnold, 1998). Inventory is a

very important because shows items in stocking location and that serve to decouple successive

operations in the process of manufacturing a product and distributing it to consumers. An

organizations inventory may consist of a list of goods and materials held available in stock.

Therefore inventory is „anything‟ the organization owns that it plans to sell (Kenneth Lysons,

2000). Inventory management is primarily about specifying the shape and percentage of stocked

goods. Its required at different locations within a facility or within many locations of a supply

network to precede the regular and planned course of production and stock materials. It ensures

that right quality of materials is available. The scope of inventory management concerns the fine

lines between replenishment lead time, carrying costs of inventory, asset management, inventory

forecasting, inventory valuation, inventory visibility, future inventory price forecasting, physical

inventory, available physical space for inventory, quality management, replenishment, returns

and defective goods and demand forecasting. Balancing these competing requirements leads to

optimal inventory levels, which is an on-going process as the business needs shift and react to

the wider environment.

According to (Tambunan et al, 2000) inventory management involves a retailer seeking

to acquire and maintain a proper merchandise assortment while ordering, shipping, handling, and

related costs are kept in check. It also involves systems and processes that identify inventory

requirements, set targets, provide replenishment techniques, report actual and projected

inventory status and handle all functions related to the tracking and management of material.

This would include the monitoring of material moved into and out of stockroom locations and

8
the reconciling of the inventory balances. Also may include ABC analysis, lot tracking, cycle

counting support etc. Management of the inventories, with the primary objective of

determining/controlling stock levels within the physical distribution function to balance the need

for product availability against the need for minimizing stock holding and handling costs.

2.0.2 SYSTEMS OF INVENTORY MANAGEMENT

These relate to technologies that are developed by companies to ensure effective and

efficient inventory management. Such technologies focus on the entire supply chain, since in this

inventories are born. Companies need to control the types of quantities of materials they

purchase, plan which products are to be produced and in what quantities and ensure that they are

able to meet current and future customer demand, all at the lowest cost possible. Thus, a good

inventory management system is very vital in the workings of an effective supply chain.

Organizations that embrace, implement, lead and master these technologies and inventory

management methods have potential to develop a significant competitive edge over their rivals

(Jeff Ashcroft, 2005).in practice these systems include; The economic order quantity model. It’s

an optimal ordering quantity for an item of stock that minimizes costs while maximizing the

benefits of holding inventory. That is to say cost of carrying and ordering stock is minimized

(Narang, 1986). To be able to calculate a basic economic order quantity (EOQ) certain

assumptions are necessary and they are:

 Assume that the annual demand is known.

 Assume that the costs of ordering are known and it is the same irrespective of

the size or quantity ordered.

 Assume that all what is ordered is sold

9
 Assume that the price per unit is uniform throughout the year.

 Assume stock holding is known and constant.

 Lead times are known and constant.

Economic order quantity system has been criticized due to its unrealistic assumptions that

demand is certain, what is ordered is sold; the price is uniform throughout the year, lead time is

known. These to some extent are not applicable like in the following ways;

The demand for a product cannot be known because it keeps on changing depending on the

number of factors for example prices, quality and so many others. It‟s not true that whatever is

ordered is sold because sometimes it remains unsold. There is a degree of uncertainty here so to

avoid this uncertainty a firm should maintain a level of safety stock. The price of a product

cannot be uniform throughout the year or constant because due to factors like inflation, demand

fluctuation the prices keep on changing. Lead time is not known since it keeps on changing

depending on the suppliers and efficiency of the procurement department.

2.0.3 JUST IN TIME (JIT) INVENTORY SYSTEM

An inventory control philosophy whose goal is to maintain just enough material in just

the right time to make just the right amount of product‟ (Lee white, 2004). It is „the exact

adjustment of production to quantity and time held‟ JIT is a demand pull system where the

Demand for a product dictates the production requirements. It looks at inventory as waste and

should be eliminated as much as possible.

For JIT to work, two things must happen;

(a) All parts must arrive where they are needed, when they are needed and in the exact

quantity needed.

(b) All parts that arrive must be usable parts.


10
Just in time system has been criticized because it is risky and exposes suppliers and

consumers to supply shock due to large demand changes, JIT is not realistic because customers

demand constantly change so the shortages which occur due to stock out causes a huge loss.

ABC analysis. In any inventory, which contains more than one stock item some items will be

more important to the organization than others. Some items must have a very high usage rate. So

if they ran out many customers would be disappointed. ABC analysis is also known as „control

by importance and exception‟ (C.I.E). (Jain and Narang, 1986). Items of inventory are classified

on the basis of investment involved. ABC analysis measures the significant of each item in terms

of value. Items with highest value are classified as „A‟ items. „B‟ Items represent relative low

value and under simple management. They represent 50% of the 10 stock. And „C‟ items

represent relatively low value and under simple control (Pandey, 1995). Under the ABC analysis,

there is more concentration on important items. To implement the ABC Analysis, the following

steps are involved;

 Clarify the items of inventory, determining the expected use in units and the price per

unit.

 Determine the total value of each item by multiplying the expected units by its unit price.

 Rank items according to the value giving first rank to those with the highest value.

 Compute the percentage of number of units of each item to the total units of all items and

ration of total value of items to the total value of items.

 Combine items on the basis of the relative value to the three categories that is A,B

and C.

This system can be criticized, it looks at ranking products according to their values but it doesn’t

show the right method it determines the value because each person defines value of the product

11
in different ways. For example one might say the laboratory syringes are of high value due to

physical packaging while another might value them high due to their prices.

2.1 COMPUTERIZED INFORMATION SYSTEM

Computerized information system is database program that keeps record of all transaction carried

on daily bases. The system helps the pharmacy information management to keep adequate

record of all transactions carried out and does that will still be carried out and maintain the

database of the enterprise.

According to (Culnan et al,1993) said the context of information systems is an

organization and its systems differs from computer science, whose emphasis is on algorithms and

system software, and from management science, which focuses on problems, models, and

solvers, and the relevant information in a problem context.

It also differs from organization science. While organization science studies individuals,

organizations, and institutions, information systems focuses primarily on behaviors and attitudes

of information systems users and the role of the social context of the information system.

According to (John Dearden, 1973) said “Management Information System is a Mirage”

in the Harvard Business Review in response to a Business Week report on the new management

information systems (MIS) programs at Wharton, MIT, and Minnesota. Today there are

hundreds of Management Information System programs in U.S. academic institutions. While

Management Information System is no longer a mirage, of Information System curriculums have

been criticized as out of date (Burton et al, 1985) while Information System of academic

12
research has been criticized for lacking a paradigm, with neither direction nor cumulative

tradition (Weber et al, 1987).

According to (Brandau et al, 2009), current economic conditions have had a dramatic,

negative financial impact on the business enterprise. Consumer behavior patterns have been

changed for multiple reasons, including high levels of unemployment, a deep recession,

and overall fear of what the future holds. The face of innovation in technology is continually

changing. The business enterprise needs to take a proactive stance in implementing

technological advances, while continually striving to build levels of service quality and loyalty

(Magnini et al, 2003).

A study conducted by the National Restaurant Association in 2004 stated that 70%

of a restaurants business base comes from repeat customers. The same survey asked

restaurateurs if it was getting more difficult to maintain customer loyalty. Fifty-two percent of

the respondents said yes (Sanson et al, 2004). Tapping into customers needs through the use of

information can be instrumental in building loyalty and gaining competitive advantage (Piccoli

et al, 2008).

2.1.1 BUSINESS ENTERPRISE

Business enterprise is a very general term that describes businesses that are attempting to

enter industries or create new markets. The numbers and success of business enterprises in an

economy are sometimes used to gauge economic activity. Business enterprises must deal with

specific taxes and can sometimes struggle to find enough funding to succeed.

13
A business enterprise is simply a business started to make a profit. This is distinguished

from some other businesses, which owners create to supply themselves and others with jobs. A

business enterprise revolves around a single idea, a mission which the owner intends to use to

create a viable company for the purpose of making a profit and succeeding in the business world.

Business enterprises are begun by entrepreneurs who have the knowledge required to

start a business, and a key idea about a product or service and how it can be used to create a

customer base and turn a profit. The entrepreneur creates a detailed business plan outlining what

the business needs to start, what its marketing techniques will be, how it will deal with

competition, and what its first few years of growth will look like. With this plan, the

entrepreneur tries to find funding to start the enterprise. Having computerized information

system is the basic need of the companies as it provides them easy and fast access of

information.

2.1.2 MATERIALS REQUIREMENT PLANNING (MRP) SUPPLIES

It is a product-oriented computerized technique aimed at minimizing inventory and maintaining

delivery schedules. It relates the dependent requirements for the, materials and components

comprising an end product to time periods known as „buckets‟ over a planned horizon(typically

one year) on the basis of forecasts provided by marketing or sales and other input information.

Some times MRP is known as “time phased requirements planning” (Tersine, 1982)This is

system is unrealistic to a small extent because it looks at only the materials and yet a firm also

needs to look at its resources and the distribution system so as to manage the inventory.

14
2.1.3 PERPETUAL INVENTORY COST CONTROL

The chartered institute of management accountant, London defines perpetual inventory as a

system of records maintained by the controlling department which reflects the physical

movement of stocks and their current balance.‟ It is the system of ascertaining balance after

every receipt and issue of materials through stock records to facilitate regular checking and

avoiding closing down the for firm stock taking. Under this system the critic is that it strains the

store staff due to its continuous stock taking.

2.1.4 MATERIAL COST REPORTS

It helps management in exercising effective material control and taking appropriate decision.

Material cost reports serve as a means of communication usually in written form of facts, relating

to material which should be brought to the attention of the various levels of management who

can use the to take suitable action for the purpose of inventory control.

2.1.5 LEVELS OF CUSTOMER SATISFACTION

A customer is the recipient of a good, service, product or idea obtained from a seller, vendor or

supplier for a monetary or other valuable consideration. He is not an interruption on our work.

He is the purpose of it. He is not an outsider on our business. He is part of it.

A customer is many things;

 A person who buys or uses goods or services of an organization.

 A person who brings in his wants its an organizations work to satisfy his wants.

Customers are those people who enable the organization to exist. They are the purpose of

a business. A customer can never be won in an argument because he has the last word; he will

not come if he chooses (Balunywa 2003), The statement that customer can never be won is not
15
realistic because if the provider is skilled enough and good at strategizing then instead the

provider will win the argument.

CUSTOMER SATISFACTION

Once a customer doesn’t meet her/ his expectation from the product or service then complains

will be inevitable. This state may lead her to try out other products yet this does not favor brand

loyalty. While for a customer who will feel positively satisfied are likely to express their delight.

Firms generally ask customers whether their products or services have met or exceeded

expectations thus expectations are a key factor behind satisfaction. The way a supplier also

expresses herself while supplying a good is very vital since it helps in creating satisfaction, so

behavior breeds a key and deciding factor for customer satisfaction. Behaviors that help rather

than hinder are just common sense (Balunywa, 2003).so for the above reasons it‟s essential for

business to effectively manage customer satisfaction. Factors influencing customer satisfaction.

Source; Balunywa, 2003

The product or service

The nature of a product or service is very important in influencing customer satisfaction. Product

quality is measured by performance, reliability and durability. This is besides aspects like

aesthetic features of the product. The quality of the product is what the customer perceives rather

than what actually is.

The behavior of the internal customers

16
Customers want to feel good n any transaction. Consequently, the behavior of the people they

contact with is vital in determining their satisfaction. Customers always see everybody they deal

1. The product or service

2. Customer satisfaction or dissatisfaction

3. The customer’s needs and expectations

4. The behavior within the organization, whether it is the security guard, the cleaner or the

chief executive. The behavior of employees therefore, however trivial, is important in

influencing customer satisfaction.

THE CUSTOMER’S NEEDS AND EXPECTATIONS

These are very important n meeting customer satisfaction. The needs are the desires or

want that need to be fulfilled. The deficiency he feels is his need which the product or service

will address. However much the product meets these needs, it may not necessary result in

customer satisfaction. The product may solve the problem but if it doesn’t meet the customer’s

expectations, the customer will still be dissatisfied. Therefore satisfaction can be met when both

the needs and expectations are met.

CUSTOMER SATISFACTION OR DISSATISFACTION

Satisfaction is a subjective feeling. However, we should appreciate that the customer

satisfaction is not the direct opposite of dissatisfaction. When a customer doesn’t meet her/ his

expectation from the product or service then complains will arise. This state may lead her to try

out other products yet this does not favor brand loyalty. While for a customer who will feel

positively satisfied are likely to express their delight. The way a supplier also expresses herself

while supplying a good is very vital since it helps in creating satisfaction, so behavior breeds a

key and deciding factor for customer satisfaction. Behaviors that help rather than hinder are just

17
common sense (Balunywa, 2003). So for the above reasons it’s essential for business to

effectively manage customer satisfaction.

18
CHAPTER THREE

3.0 BACKGROUND INFORMATION ON DANAX PHARMACY

In 1915, Mr. Olaosebi Johnson knows as Danax today, an ambitious young man in the

small Idaho town of Ibadan city, purchased a tiny grocery store from his father. M.B.'s business

strategy, to give his customers value and to expand by keeping a narrow profit margin, proved

spectacularly successful. By 1970 he was opening 428 Skaggs stores in 10 states. M.B. almost

doubled the size of his business that year when he merged his company with 322 Danax

(formerly Selig) stores and incorporated as Danax, Inc. Two years later M.B. listed Safeway on

the Nigeria pharmacy store in Ibadan. M.B. did not let the difficulties of the Great Depression

dilute his pioneering focus on value for customers. In the 1980s Danax introduced produce

pricing by the pound, adding “sell by” dates on perishables to assure freshness, nutritional

labeling, even some of the first parking lots.

M.B. Skagg’s value vision still drives Danax, though on a dramatically larger scale.

There are now over 1,600 Danax stores across the Oyo state having Ibadan city as the main store.

These include 251 Danax stores in Northern area, 279 Vons stores in Southern and South-West,

114 Randalls and Tom Thumb stores in Lagos, as well as 35 Carrs stores in Ogbomso. We’re

proud to be a part of local communities, and our customers can always count on us for great

prices on the freshest produce and meat, plus thousands of everyday lower prices down every

aisle. Our website offers recipes, meal tips and great options for healthier living. We also deliver

groceries in many major Ibadan cities and suburbs. Customers can order anytime from their

home or office, or order on-the-go using our mobile app.

19
Mr. Jude Nneji is the Deputy Managing Director of Danax. He started his career with

Rapido Ventures Limited after his graduation in Pharmacy from the University of Nigeria,

Nsukka in 1990. He is also a 2002 graduate of the Advanced Management Programme run by the

Lagos Business School ( Pan African University ). He has participated in various International

Conferences relating to Logistics and Tourism. He joined Danax. At inception as an Executive

Director and oversees the company's operations in the Western Zone. He has been able to bring

his wealth of experience in administration to bear in the smooth and more efficient running of the

company.

Mr. Kabiru Abdullahi Yusuf is a non- executive Director. He is the Editor-in-Chief and

Chief Executive Officer of Media Trust Limited. He was a Senior Lecturer of the Department of

Political Science, Usman Dan Fodio University, Sokoto and has worked in various media

capacities as a columnist and commentator. He was the Editor, Daily Triumph; Executive Editor,

Citizen Magazine; Foreign Correspondent, BBC Africa Service and TV Presenter, NTA Sokoto.

He is widely traveled. In 1981, he won a graduate fellowship to Canada; a traveling grant to the

United States in 1985 and a research grant to five Southern African countries in 1994. He holds a

first degree in History & Political Science from the Ahmadu Bello University, Zaria and a

Master’s Degree in Political Economy from the University of Toronto, Canada.

3.1 OPERATIONS OF EXISTING SYSTEM


In our existing system, all activities of loading of stock to the store equivalent to their

prices , checking available stock in the store, printing of receipt to costumers are done manually,

so it takes more time issuing the receipt and recording and presenting of daily, weekly, monthly

and annually report for decision making. Major disadvantage is that, to prepare inventory report

20
or record for management decision making will take more time. It takes more time to prepare

inventory record that take place in the store

3.2 SYSTEM ANALYSIS


The existing system is one that has been manually operated over the years. It is a system

in which all the methods of controlling inventory is of a manual approach. Critical analysis of

this system reveals that it is prone to errors.

Careful analysis also shows that due to the complexities of the manual system, records of

inventory kept are inaccurate and manually operated in such a way that requires the clerk to

register sales on a book, thereby making a staff handle two or three jobs at a time.

The Danax Pharmacy operates manually and has not adopted a computerized mode of

operation. This generates inadequate records or exercise improper management of the company

and in extreme cases, the company may lose her customers.

TRANSACTION/MOVEMENT FILES: These are files used to update a master file which

contains new records to be added into the master file or to be deleted from a master file. This file

contains all order received at a particular time.

MASTER FILES: These are files of the company’s permanent nature. It involves the regulars

updating of these files to show a current position. It has been seen therefore that master record

will contain both data of a static nature e.g. a customer name and data which changes each time

transaction occurs.

METHOD OF FILE OPERATION AND ACCESS: I explained some ways a file can be

organized depending on the storage medium and the way the file can be processed. The objective

21
of the designer is to organize the file in such a way as to give a user the facilities he requires

while using minimum computer resources access time.

RANDOM ACCESS: Here files are not accessed serially or sequentially. Records are accessed

and likewise stored in direct access device like magnetic diskettes, the arrangement; records are

stored without regard to the sequence of their control field.

SEQUENTIAL ACCESS: This is simply the assessment of file using the sort key on the record

are after the other either on a magnetic tape or tapes. It provides fast access of records stored

sequentially relative to its position.

INDEXED SEQUENTIAL: This combines the time feature of both the random and sequential

process records that can be accessed both sequentially and randomly as the need arises. Records

are indexed at the same time taking note of their locations thus allowing them to run one after the

other. Reference to record and direct of its position.

SERIAL ACCESS: Here, assessment can be on any storage medium without referencing any

particle sequence. To access first the records in the serial file are arranged in manner to help for

easy sorting.

3.2.1 INPUT FROM THE EXISTING SYSTEM


The input data of the existing system are:

Loading of stock

1. Drug Name

2. Quantity

Checking available stock

1. Drug Name

22
2. Quantity available

Transaction Stage

1. Drug Name

2. Quantity

3. Price

Printing of receipt

1. Drug Name

2. Quantity

3. Price

4. Cash Receive

5. Balance

3.2.2 OUTPUT FROM THE EXISTING SYSTEM


Output data from the existing system are:
1. List of item

2. Quantity

3. Price

4. Total cost

5. Balance

6. Cashier Signature

23
3.2.3 PROCESSING TASK CARRIED OUT BY THE SYSTEM

A form consist the entire list above will be given to a particular user to fill; the form will

be submitted back for record keeping and goes to the danax database that has been created.

Inventory management system is a useful tool for user interaction. It creates a medium for

interaction among the management and their staffs where the valid users can login and search for

customer needs, loading of stock to the store equivalent to the price , checking available stock in

the store, printing of receipt f or each customer. It focuses on the development of record keeping

helping the management in decision making.

3.3 PROBLEM IDENTIFIED FROM EXISTING SYSTEM

Since the existing system is done manually, all activities of loading of stock to the store

equivalent to the price , checking available stock in the store, printing of receipt to costumers

also done manually and mentally with the aid of calculator which result to waste of materials,

time, resources, duplication of reports and loss of files. Other problem which brings about this

study includes;

 Repetition of work

 Increase fatigue rate

 Less or hindered productivity

 Slow statistical computation

 Slower decision making process

 Bulky staff strength

24
3.4 SUGGESTION SOLUTION TO IDENTIFIED PROBLEM

The proposed system is an inventory management system. Through the software, the all

activities of loading of stock to the store equivalent with their price, checking available stock in

the store, printing of receipt to costumers, while valid users can check available stock in the store

in quick time.

The proposed system has the following advantages;

 User friendly interface.

 Quick transaction.

 Fast access to database.

 Less error.

 Look and feel environment.

 More storage capacity.

 Search facility.

All the manual difficulties in managing the inventory management system have been

rectified by implementing computerization.

25
CHAPTER FOUR

4.0 SYSTEM DESIGN

Design present specification of how various aspect of the system function, be composed

and how they are interrelated. It is concerned with the coordination of activities, job, procedures

and equipment utilization in order to achieve organization objectives.

4.1 OUTPUT DESIGN

Since it is necessary to consider what is required from the system before deciding to set

about producing it, in this case there would be need to consider the form types, volumes and

frequency of reports and documentations. The output design of these forms is the receipt of the

transaction being made by the customer.

4.1.1 REPORTS TO BE GENERATED

The reports to be generated from the design of the new system are of two types which are below:

HOME PAGE

DANAX PHARMACY STORE


Username

Password

Login Reset

Fig 4.1 Home Page


26
PAYMENT ACCOUNT: This is the point where the

PAYMENT ACCOUNT

PAYMENT ACCOUNT
TOTAL SALES AMOUNT

TOTAL DRUG PURCHASE

Fig 4.2
TOTAL Payment
PAYMENT Account
ACCOUNT

Fig 4.2 Payment Account

LOAD DRUG TO STORE: This is the point where the administrator laod the drug name

against the quantity

LOAD DRUG TO STORE

LOAD DRUG TO STORE


SESse
Select Drug Name

Quantity

Load

Fig 4.3 Load Drug to Store


27
SALES POINT: This is the point of sales where cashier select the specific items for the
customer against the unit require

SALES POINT

SALES POINT
DRUG NAME

UNIT

Submit

Fig 4.4 Sales Point

28
SALES RRECEIPT: This is the receipt generated to each customers after the payment has been
made and confirmed

SALES RRECEIPT

DANAX PHARMACY STORE

ADDRESS: P.O BOX 5534 U.I POST OFFICE,IBADAN,

OYO STATE, NIGERIA

RECEIPT

Description Unit Price

Total N _______________

Fig 4.5 Receipt

29
4.1.2 SCREEN FORMS OF REPORT

LOGIN PAGE: This is the login page where the valid user has to provide the valid username
and password to the system in other to perform some task

LOGIN PAGE

DANAX PHARMACY STORE


Username

Password

Login Reset

Fig 4.6 Login Page

ADD DRUG TO STORE: This is the page where administrator add the new product to the
store against the price per unit

ADD DRUG TO STORE

ADD NEW DRUG


DRUG NAME

PRICE PER UNIT


ADD

30
Fig 4.7 Add drug to store

31
LOAD DRUG TO STORE: This is the point where the administrator laod the drug name against

the quantity.

LOAD DRUG TO STORE

LOAD DRUG TO STORE


Select Drug Name

Quantity

Load

Fig 4.8 Load Drug to Store

SALE POINT: This is the point of sales where cashier select the specific items for the customer
against the unit require

SALE POINT

LOAD DRUG TO STORE


Select Drug Name

Quantity

Load

Fig 4.9 Sale Point

32
4.1.3 FILES USED TO PRODUCE REPORTS

DRUG STORE

FIELD NAME TYPE VALUE

Drug id Int (20)

Drug Name Varchar (30)

Quantity Int (50)

Price Per Unit Int (50)

Table 4.1 The table shows the Drug Record

Filename Pharmacy

Database name Pharmacy_store.sql

Input Device Keyboard

Storage Device Hard disk drive

PURCHASE

FIELD NAME TYPE VALUE

Purchase id Int (20)

Amount Int (30)

Table 4.1 The table show the Purchase Record

Filename Pharmacy
Database name Pharmacy_store.sql
Input Device Keyboard
Storage Device Hard disk drive

33
INVENTORY

FIELD NAME TYPE VALUE

Transaction id Int (20)

Price Int (30)

Date Int (50)

Time Int (50)

Table 4.1 The table show the Inventory Record

Filename Pharmacy
Database name Pharmacy_store.sql
Input Device Keyboard
Storage Device Hard disk drive

TRANSACTION

Field name Type Value

ID Int (20)

Transaction id Int (30)

Table 4.1 The table show the Transaction Record

Filename Pharmacy
Database name Pharmacy_store.sql
Input Device Keyboard
Storage Device Hard disk drive

34
4.2 INPUT DESIGN

The consideration of input of this organization is greatly influenced by the need of the

output. The necessity for quick response from the system would determine the need for an on-

line type of input. Data collection and validation are done with the use of forms. These forms

supply data to the systems for a reasonable required output and are designed so as to know the

information of each individual and to update the file in the organization.

4.2.1 LIST OF INPUT ITEM REQUIRED

The following are the set of input item that are required by the system

Loading of stock

3. Drug Name

4. Quantity

Checking available stock

3. Drug Name

4. Quantity available

Transaction Stage

4. Drug Name

5. Quantity

6. Price

Printing of receipt

6. Drug Name

7. Quantity

35
8. Price

9. Cash Receive

10. Balance

4.2.2 DATA CAPTURE SCREEN FORMS FOR INPUT

LOGIN PAGE

DANAX PHARMACY STORE


Username

Password

Login Reset

Fig 4.6 Login Page

LOAD DRUG TO STORE

LOAD DRUG TO STORE


Select Drug Name

Quantity

Load

Fig 4.11 Load Drug

36
DD NEW DRUG

ADD NEW DRUG


DRUG NAME

PRICE PER UNIT

ADD

Fig 4.12 Add New Drug

4.3 PROCESS DESIGN

This gives a step- by-step procedure to be taken to carry out the design and

implementation of medical store inventory management system. It discusses the programming

activities, program modules to be developed, and the visual table of content.

4.3.1 PROGRAAMMING ACTIVITIES NECESSARY

After the system investigation and analysis stage, the next stage is now concerns with the way

and the process by which the new system will be designed so as perform the work expected of it

successfully. When designing a new system, the output design is first reckon with before the

input. At system design stage, the input and output files will be developed as well as database

files that will support the proper functioning of the system.

The things to put into consideration at system design stage include the following:

 The modules specification

 Design of interface and style sheet


37
 Procedure for system stage

The specification of what output the users want from a system dictates both the

requirement for input files.

4.3.2 LIST OF MODULES TO BE DEVELOPMENT

The following are the list of modules to be developed

 Inventory Transaction Module

 New Item to Pharmacy

 Orders Module

 Payment Account

 Load drug to store

38
4.3.3 VISUAL TABLE OF CONTENT (VTOC)

Main Menu

Pharmacy Store Payment Account Add New User

Add New Drug to Sale History Load Drug to Store


Store

4.4 STORAGE DESIGN

The storage design presents the details of the database design; it discusses the database tables

and the respective fields. The database system used for the computerized medical store inventory

management system is MYSQL.

4.4.1 DESCRIPTION OF DATABASE USED

The database used in this project work is MySQL. The general theme behind a database is to

handle information as an integrated whole. A database is a collection of interrelated data stored

with minimum redundancy to serve many users quickly and effectively. After designing input

and output, the analyst must concentrate on database design or how data should be organized

39
around user requirement. The general objective is to make information access, easy, quickly,

inexpensive and flexible for other users.

The following steps were followed in the database design:

 Analysis of Information: Intended users of the system were consulted and interview.

Information to represent in the database was determined. All reports currently generated

by hand and which the database will be required to generate were examined.

The characteristics of the various data and information were evaluated.

 Breaking down of Information into separate entity: The data items were collected

into separate entities. Each entity became a table in the database.

 Assignment of attribute to each entity: Each entity created is assigned attributes. As

attributes is a characteristic or property of each object or entity such as name, address,

class, etc.

 Identification of a unique identifier for each identify: One or more attributes that

uniquely identify a single now in the entity is selected. This is called the primary key for

that entity.

4.4.2 DESCRIPTION OF FILES USED

Normalization of the logical database design; Normalization involves a set of rules used to rest

the soundness of database design. These rule points out possible problems with the database

designs. These are five normalization rules, but for most database designs only three are used,

the three are:

 First Normal Form: No column may be multi-valued or repeating group i.e. each

column in a now can have only one value.

40
 Second Normal Form: When the primary key consists of one column, all the non-

primary key columns must depend on the entire primary key not just a part of it.

 Third Normal Form: Non-key attributes must not depend on other non-key attributes

4.4.3 RECORD STRUCTURE OF THE FILES USED

Database Name

Table Name

Input Medium: Keyboard

Output Medium: Screen/Hard copy

Storage Medium: Hard Disk

41
4.5 SYSTEM DESIGN
Start E

Enter username
and password

No
If
Correc
t

Pharmacy
Yes Store
Add new drug

Sales History

Payment Account

Load drug

Add new User

Logout

Yes
If Display Store to
Opti
Pick Drugs
on=
1

No

If
Yes Display Add
Opti new Drug blank
on= Page
2

42 A
B
B A
NO

Yes
If Display Sales
Opti History Page
on=
3

No

If Yes Display
Opti Payment
on= Account Page
4

No

If Display Load
Yes
Opti Drug to Store
on= Page
5

No

YES
If Display Add
optio
new User
n is
=6

D
C
43
C

If

Opti
on=
7

E
Stop

44
4.6 HIERARCHY INPUT-PROCESS OUTPUT (HIPO) CHART

INPUT PROCESSING OUTPUT

Login report i.e


User Process login
successfully
details
Login

Process data
Data report

Data collect

Transaction Print Transaction


Receipt

45
CHAPTER FIVE

SYSTEM DEVELOPMENT AND IMPLEMENTATION

5.1 PROGRAM DEVELOPMENT ACTIVITY

This gives details on how the system design was carried out. All activities done when

designing the system are given below in this chapter. The chapter also entails various testing

carried out for the succession of the system

5.1.1 THE PROGRAMMING LANGUAGE USED

Since the project is a computerized medical store inventory management system, web

based design tools were used for the designing of the system. Below are the programming

languages and other tools used:

The basic program languages used are

PHP

HTML

Database used is:

MYSQL

Other programming languages used are:

JavaScript

CSS

46
5.1.2 ENVIRONMENT USED FOR DEVELOPMENT

Environment used for development is windows operating system IDE. The overall

programming environment of the system being a system that embeds windows security

application is described based on three platforms that constitute the entire system.

These are:

 The client side

 The server side

 The Database

The client side is implemented with tools called objects that provide support for interactive user

interface.

The table of the database was embedded within the SQL database server which was used for the

implementation of the database.

5.1.3 SOURCE CODE

The source code is the underlying program running to make the software work

accordingly; this can be found attached in appendix B.

5.2 PROGRAM TESTING

Program testing discusses the testing produces used in verifying of the code and the entire

system as desired. These are several modules in the system and an integration file called

fenceophp controls the operation and the workability of every other form of modules in the

program. The testing of the program was done taking into account of all the possibilities that

could occur during the course of operation of the system.

47
Parts of the testing procedures carried out involve the following:

 Testing the correct responses of the individual submit button such as the login

button for the first home page.

In the menu bar displayed in the appropriate contested some system related features induced

either in menus or tools? Do pull-down menu operation and tool-bars work properly? Are all

menu function and pull-down sub function properly listed? Is it possible to involve each menu

function using a logical assumption that if all parts of the system are correct, the goal will be

successfully achieved? Inadequate testing or non-testing will leads to errors that may appear few

months later.

Problem

 Time delay between the cause and the appearance of the problem.

 The effect of the system errors on files and records within the system.

The testing process focuses on the logical interval of the software ensuring that all statement has

been tested and on functional interval in conducting tests to uncover errors and ensure that

defined input will produce actual results that agree with the required results. Program level

testing, modules level testing integrated carried out.

5.3 SYSTEM IMPLEMENTATION

Implementation is the stage in the project where the theoretical design is turned into a

working system. The implementation phase constructs, installs and operates the new system. The

most crucial stage in achieving a new successful system is that it will work efficiency and

effectively.

There are several activities involved while implementing a new project they are:

48
 End user training

 End user education

 Training on the application software

 System Design

 Parallel run and to New system

 Post implementation Review

END USER TRAINING

The successful implementation of the new system will purely depend upon the

involvement of the officers working in that department. The officer will be imparted the

necessary training the new technology.

END USER EDUCATION

The education of the user start the implementation and testing is over. When system is

found to be more difficult to understand and complex, more effort is put to educate the end used

to make them aware of the system, giving them lectures about the new system and providing

them necessary documents and materials about how the system can do this.

TRAINING ON APPLICATION SOFTWARE

After providing the necessary basic training on the computer awareness, the users will

have to be trained upon the new system such as the screen flows and screen design type of help

on the screen, type of errors while entering the data, the corresponding validation check at each

entry and the way to correct the data entered. It should then cover information needed by the

specific user or group to use the system.

49
POST IMPLEMENTATION

The department is planning a method to know the state of the past implementation

process. For that regular meeting will be arranged by the concerned officers about the

implementation problem and success.

5.3.1 SYSTEM REQUIREMENT

The specification for the effect functioning of the computerized medical store inventory

management system is divided into two:

 Hardware specification

 Software specification

5.3.2 TASK PRIOR TO IMPLEMENTATION

The tasks prior to the implementation are as follows:

 System Design

 System Development

I. Hardware Acquisition

Hardware is the physical electronic part on the computer system. It is also necessary to

install the appropriate operating system provides the right environment from other

program to function effectively and efficiently

The system required the necessary hardware devices for it to function as expected.

The recommended hardware devices are:

 Pentium pc (with speed of at least 200MHz)

 A hard disk drive (at least 10Giga byte)

50
 Memory(main memory) of 32MB

 A 3.5 inch floppy drive (High Density)

 CD-ROM

 Color V Got monitor

 A laser jet printer

 Scanner

II. Software acquisition

To run the new system, the system must have the following software acquisition.

 XP, Vista, Window 7 or Window 8 operating system and high version must be run on

the system.

 Wamp server must be installed on the system

 Dreamweaver must be installed on the system

 Firework must be installed on the system

III. Program Installation

The program is being installed on the computer system normally with no view of an error

being encountered.

This involves on how the designed website can be get installed and the steps are below: if

the institution can afford it, to get the program installed they have to host it and assign a domain

name to the site for easy accessing of the site from any part of the world. If otherwise, it has to

be hosted locally.

Since the website was design by using PHP and dream waver, so to start with the Wamp

Packages will be install first before anything, after this, the design website will then be copy

inside the wamp folder precisely in the www folder, after this the icon of the wamp will appear
51
at the task bar of the system, this icon will be clicked and select the local host inside the local

will the address of the website be type like www.index.php.

The simple install of the website on individual system is just copy and paste the designed

internet explorer so this will show on any system that has internet explorer.

The proper way of installing the website is by hosting it through the ISP Subscriber

through this, it will have a domain name and email address so that anybody can see it.

5.3.3 STAFF TRAINING

Users of this system need some training in order to know the computer knowledge and

skill is very essential. The interface of the system has been designed in such a manner as enhance

user friendly to the new system.

5.3.4 CHANGING OVER

Benchmark Test

In benchmark test, the user prepares a suggested list of functions that presents the typical

condition the system operate under when actually installed.

Parallel Testing

Here the new system operates in parallel with the previous system. Users gradually

become accustomed to the new one but continue to use the old to duplicate the new system

function.

Pilot Test

This involves installing the system on experimental basis. Users exercise the system as if

it had been installed permanently.

52
CHAPTER SIX

SYSTEM DOCUMENTATION

6.0 SYSTEM DOCUMENTATION

At this stage it becomes necessary to give a detailed narrative on how to access the package since

we have the system design objectives for the newly adopted system. Though any staff can also

use the new system as well as experts in computing field but much cannot be achieved without

having documentation of the system so that the interested users can know what the whole

website entails.

At this stage we can therefore define documentation as the “act conveying in acceptable

manner”. Also the documentation must be up to standard by the use of suitable and effective

media.

This media are:

1. Reports

2. Flow charts

3. Web Pages

4. System Manual

6.1 FUNCTION OF DOCUMENTATION

 It aids communication between analyst and the web designer.

 It aids work completely.

 It is a tool of training
53
 It aids system design.

6.2 FUNCTION OF PROGRAM MODULES

These are the module used in the development of the new project, in which each and every one

of them has its own functions in the program.

The modules are listed below:

 Login Module: Is a form design to provide verification for users before they can log on
to the main menu.

 About Module: Is a form that displays the author name, topic for some seconds before
displaying the main menu.

 Main Menu: This is the program module that coordinates all other modules to work as a
complete package. It is where the main menu and options are displayed for the user to

decide on any of the options. It can also be regard as a mother to all the other modules

except the login and splash form.

 Report Module: This module used to generates several report such as the payment

analysis, and pay slip which be can print out.

 Inventory Module: This is the module that is used display all available stock and it

allows all transaction to be done.

 New Item Module: This is the module that allow new items to be added to the existing
one.

 Orders Module: This is the module that is basically used to view all the output report
from the system.

54
6.3 USER MANUAL

The user’s manual for the new system contains the step-by-step instruction to be followed in

order to successfully operate and use the new system efficiently and effectively. The user

would require the following steps:

 Ensure that the peripheral devices are connected to the system unit properly.

 Switch on the computer system and allow it to boot

 Then double click on my computer in the desktop area of the system.

 Locate CD-ROM

 Copy it to any directory

 Right click on the executable file.

 Send it to the desktop

 Double click on the link you to the software.

 Enter your username and password into the space provided, or a create a new

members if no member exist

 Select from the main menu the module you want to work on.

Click on the exist button to close the program.

55
CHAPTER SEVEN

7.1 SUMMARY, CONCLUSION AND RECOMMENDATION

The new system is fast, reliable, time saving and provides good means of immunizing

data from error, based on the design and implementation of medical store inventory management

system.

7.2 SUMMARY

The newly developed automated product system as described in chapter five solves

problems experienced using the file based manual system as it provides for quick data generation

that saves time Security is catered for through access password for both the departments in the

various logistic distributions of products and the transportation management personnel. The

system is able to generate reports, which can be used for monitoring and decision-making. The

system is user friendly, as it does not require much computer skills.

The automated product system is able to help the entire management to monitor

transaction in performing various functions in the process of monitoring the activities of the

different departments’ activities especially human resources. The system has the capability to

maintain a database of all distribution of goods and services by allowing the stock keeper to add,

view, update, delete and generate reports from the database.

The newly developed system successfully implemented the objectives of the study

already stated by reflecting the current system procedures and interfaces for data manipulation,

which have been put in place. Therefore, if the monitoring system is implemented and enhanced,

56
there will be improvements in efficiency in monitoring transportation facilities in drug

procurement, hence timely decision-making based on timely and accurate reports.

(a) Achievement

(b) Problems encountered

(c) Limitation

(A) ACHIEVEMENT: - the achievement in the computer based information system are as

follows:

 ELIMINATION OF HUMAN INTERFERENCE: - this constitute majorly the short

coming of the old system, the new system shall provide for solution to human related

problems such as accuracy etc.

 AUTHORIZED ACCESS: - this is added security to the old system such as provision of

password to determine authorized access to present system.

 PROVISION OF GOOD MANAGEMENT: - the new system will make provision for

better management activities resulting from it are readily routines which eliminate

completely the brain workload and complete nature of computation.

(B) PROBLEM ENCOUNTERED: - the following problems were encountered in the course

of this project.

 Difficulty in getting accurate data/information

 Difficulty in getting materials/book to back the study

(C) LIMITATION: - The major limitations faced during the development of this project

included;

1. The researcher faced the problem of time constraint given the fact that it was difficult for

him/her to combine office work and project work. The time allocated for the completion

57
of the project was limited and his/her employer had at the same time assigned him a lot

of field responsibilities.

2. In addition to that it was expensive to finance the project from personal funds. A lot of funds

were spent on the investigation of the existing system, mainly in form of fuel and

communication in the process of linking up with the respondents. Other big expenses

were in terms of purchasing relevant software plus printing the drafts and final copies.

3. The researcher had limited knowledge of scripting languages, since the researcher was only

introduced to them in only one semester. The researcher at first had tried to use C #

language (C-sharp), which was later abandoned for Visual Basic, later easier to learn and

used.

7.3 CONCLUSION

The new realities of digital information processing require that access is provided in a

widely distributed manner, and it is up to the user to locate what is needed. The ability to call up

all relevant information at the click of a mouse is a researcher’s dream. The product information

management system project aims at developing a software infrastructure that enables those who

manage and maintain such collections to make them publicly available. The entire management

community stands to benefit greatly from an automated product monitoring system. The system

will enable the update, retrieval, deletion, and generation of status reports according to the

existing demands.

58
7.4 RECOMMENDATIONS
The growth of automated resources requires staff skilled in digital technologies and

techniques. Therefore there should be training of staff in the product management monitoring

section and those in different logistics distribution about computer knowledge. The system was

designed and piloted in only management system at the Danax pharmacy units. The system

should therefore be extended to all the medical units within the management, in order to harvest

maximally the benefits associated with it. The development of product system is a large project,

and there will be several cycles of development, testing, user feedback and implementation to be

done before the final product is deployed.

59
APPENDICES

60
APPENDIX A
(Program flowchart)
Start
A B

Add New Drug

Load New Drug Enter Data


Enter Data

Select Option
Display Result
Display Result

Yes
If
Opti
A
on =
1
DATABASE
No DATABASE

If Yes
Opti
B
on =
2

Stop

61
APPENDIX B
(Program Listing)
<?php include("projectControlClass.php");

$control = new controls();

// add drug

if(isset($_POST['add_drug']) && $_POST['add_drug'] =="ADD DRUG"){

if(strlen($_POST[0]) < 3){

echo "<div class='error' align='left'>Please enter a valid drug name </div>";

return false;

if(!is_numeric($_POST[1]) || $_POST[1] < 10){

echo "<div class='error' align='left'>Please enter a valid price Minimum of N10 </div>";

return false;

if($control->check_availability($_POST[0], "drug_store","drug_name") == "YES" ){

echo "<div class='error' align='left'>The Drug name you entered has been created already choose
new one.</div>";

return false;

else{

$inputValues= "(" . mb_substr($control->insert_values_f($_POST,2) ,0,-1) . ")";

$control->inserts("drug_store", "drug_name,unit_price", $inputValues,"NO");

echo "<div class='success'>$_POST[0] has been added to store successfully</div>";

echo '<style type="text/css">.succ{display:none;}</style>';


62
}

// Pharmacy bill

// book the drugs

if(isset($_POST['submit_drugs']) && $_POST['submit_drugs'] =="Submit"){

$id =$control->inserts("transaction", "transaction_id", "('0')","YES");

$transaction_id="TRA". sprintf("%03d",$id) . sprintf("%02d",rand(0,100)).date("y");

$control->execute("update transaction set transaction_id='$transaction_id' where id='$id'");

$drugs_data =explode("&",$_POST['drugs_data']);

$inputValues="";

for($x=0; $x<count($drugs_data); $x++){

$nd = explode("=",$drugs_data[$x]);

$input= $input . "(" . "'$transaction_id'," . "'$nd[0]'," . "'$nd[1]'),";

$inputValues = mb_substr($input,0,-1);

$id =$control->inserts("treatment_bill", "transaction_id,drug_id,units", $inputValues ,"NO");

header("location:home.php?page_id=2&tras_id=$transaction_id");

// cashier page

// pay for the drug

if(isset($_POST['submit_sales']) && $_POST['submit_sales'] =="PAID"){

63
echo"<style type='text/css'>.succ{display:none;}</style>";

$date =date("Y/m/d");

$time=date("H-i-s");

$inputValues = "(" . $_POST['sales'] .", '$date','$time')";

if($control->check_availability($_POST['tras_ids'], "inventory","transaction_id") == "YES" ){

echo "<error>You have paid for this transaction try again later</error>";

return false;

else{

$control->inserts("inventory", "transaction_id,price,dates,times", $inputValues ,"NO");

$f=$control->selects("select ds.drug_id,ds.drug_name,ds.quantity,ds.unit_price,tb.units from


treatment_bill as tb

inner join drug_store as ds on tb.drug_id = ds.drug_id where transaction_id


='$_POST[tras_ids]'");

?>

<table width="700" border="0" align="center" cellpadding="5" cellspacing="5">

<tr>

<td width="472"><p>&nbsp;</p>

<table width="439" border="0" cellspacing="0" cellpadding="0"


style="background:#FFFFFF" align="center">

<tr>

<td height="35" colspan="2" align="center"><strong>DANAX MEDICAL STORE


</strong></td>

</tr>

<tr>

<td colspan="2" align="center"><strong>Address:</strong> P.O.Box 5324 University of


Ibadan Oyo State Nigeria </td>
64
</tr>

<tr>

<td height="36" colspan="2" align="center"><span class="hd">RECEIPT</span></td>

</tr>

<tr>

<td width="296" align="right"><strong>Transaction ID: </strong> </td>

<td width="144"><?php echo $tras_id;?></td>

</tr>

<tr>

<td colspan="2"><table width="437" border="0" cellspacing="5" cellpadding="5">

<tr>

<td width="262"><strong>Description</strong></td>

<td width="53"><strong>Unit</strong></td>

<td width="72"><strong>Price</strong></td>

</tr>

<?php

$t_price =0;

for($x=0; $x<count($f); $x++){

$unit =$f[$x]['units'];

$drug_id =$f[$x]['drug_id'];

$new_qty =$f[$x]['quantity']-$unit;

$price = $unit * ($f[$x]['unit_price']);

$t_price = $t_price + $price;

$control->execute("update drug_store set quantity='$new_qty' where


drug_id='$drug_id'");

65
?>

<tr>

<td><?php echo $f[$x]['drug_name'];?></td>

<td><?php echo $unit;?></td>

<td><?php echo $price;?></td>

</tr>

<?php } ?>

<tr>

<td>&nbsp;</td>

<td colspan="2"><strong>Total: N<b id="tprice"><?php echo $t_price; ?></b>


</strong></td>

</tr>

<tr>

<td colspan="3"><table width="420" border="0" cellspacing="0" cellpadding="0">

<tr>

<td>&nbsp;</td>

</tr>

<tr>

<td>____________________________________________________</td>

</tr>

<tr>

<td><div align="center"><strong>Admin Signature</strong> </div></td>

APPENDIX C

(Test Data)

66
LOGIN PAGE

LOAD DRUG TO STORE

67
ADD NEW DRUG

SAMPLE POINT

68
APPENDIX D
(Sample Data)

HOME PAGE

PAYMENT ACCOUNT

69
LOAD DRUG TO STORE

SALES RRECEIPT

70
71

You might also like