Pharmacy

Pharmacy-Management-System

The project aims to assist a pharmacy in managing its inventory, details of customers, employees and suppliers as well as keeping track of its purchases and sales. It is a web-based application implemented using PHP with MySQL as the Database Management System. User Interface is designed using HTML5, CSS3 and JavaScript.

Getting Started

Installation and Setup

  1. Download and Install XAMPP
  2. Open XAMPP Control Panel and start Apache and MySQL.
  3. Clone the repository to your system or download and extract the zipped folder.
  4. Place the folder PHARMACY in C:\xampp\htdocs.
  5. In web browser, open localhost/phpmyadmin.
  6. Create a new database called ‘pharmacy’ in phpmyadmin.
  7. Import the file ‘pharmacy.sql’ into the database.

Launch

  1. After successfully importing, start the project by typing the following in the web browser: localhost/PHARMACY/mainpage.php
  2. The Login Page for Admin opens up by default. Login as Admin by using:
     Username: admin
     Password: password   
    
  3. For Pharmacist Login, refer to the ‘emplogin’ table in the database. Example:
     Username: varshini
     Password: pass7
    

About the Project

Introduction

Pharmacia, a Pharmacy Management System aims to help in maintaining and managing the records for a pharmaceutical store by improving efficiency, accuracy and security.

Pharmacies need to maintain details of medicine stock, suppliers, employees, customers, any stock purchased by the pharmacy and any sales made by the pharmacy. The previous manual methods require the pharmacists to manually monitor all the records lists and transactions and to verify the presence of the each drug in the pharmacy. Searching for any required drug may be difficult.

Using the Pharmacy Management System, one can maintain stock and inventory, oversee transactions, manage suppliers and employees and maintains records of its customers. The system will help prevent waste of time and resources, allow easy access to medicines, as well as ensure more security and reliability for the data compared to the manual systems. The system assists the pharmacy in handling the daily requirements in a smoother, better and effective manner.

Objectives

The main objectives/features of the system are:

Users of the System

The system is developed for use by either the Admin or Pharmacists.

Admin Capabilities:

Pharmacist Capabilities:

Database Architecture

MEDS: Contains details regarding the list of all medicines, mainly their type, the quantity currently present in the store and their price.

SUPPLIERS: Contains details regarding any of the drug suppliers who supply stock to the pharmacy.

PURCHASE: Contains details regarding any stock purchased by the company. Purchasing a stock consists of placing an order for multiple medicines and multiple suppliers via a single purchase on an online platform on a date as specified by purchase date (based on date of delivery). It also contains the manufacturing and expiry dates for the purchased items.

EMPLOYEES: Contains details regarding all employees, including Admin, Managers and Pharmacists.

CUSTOMERS: Contains details of all customers for ease during sales transactions.

SALES: Contains details regarding all sales made by the pharmacy. It keeps track of the sale invoice number, the customer ID of the customer, the employee ID of the employee who conducted the sales, the total amount of sale and the sale date and time.

SALES_ITEMS: Contains details regarding the particular medicines sold during each sale. It keeps track of the sale invoice number, the medicine ID, the quantity of that medicine purchased and total cost for that particular sale.

ADMIN: Contains the employee ID, the username and password for the Admin. Only a single record exists. Admin capabilities can be implemented only by this login.

EMPLOGIN: Contains the employee ID, the employee username and password for all the pharmacists and managers, apart from Admin. Pharmacist capabilities can be implemented by using any of the login details in the table.

Additional Information

Live page

https://rashi7903.github.io/Pharmacy/ http://localhost/pharmacy/mainpage.php

Feel free to contact for any further queries.