Pharmacy Point of Sale System using PHP and SQLite Free Source Code

Language

Introduction

This is a PHP Project entitled Pharmacy's Point of Sale System. This project is a web-based application that helps a certain pharmacy to manage its sales transaction. The project will help the said business to process their day-to-day transactions with their customers. This will also help them to monitor the accurate available stock of the drugs they are selling.

I developed this project using the following:

  • XAMPP v3.3.0 as my local webserver that has a PHP Version 8.0.7
  • PHP Language
  • SQLite Database
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Bootstrap
  • AdminLTE
  • and more...

About the Pharmacy's Point of Sale System

This Point of Sale System (POS) project has 2 types of users which are the Administrator and Cashier. The Administrator user has access to all features and functionalities that the system has and most especially, this user type is in charge of populating and managing the important list in the system such as the list of drug categories and selling products. On this system, the system admin can manage their stocks by adding new stocks on the stock list page and each of these is recorded in the system along with the relevant data such as the expiry date and supplier of the drug/medicine. When the expiry date of the product comes, the remaining stock of expired products will be automatically deducted on the availability of the medicine. Talking about the Transactions Page or POS Page, this page shows a box that contains the product list panel, Item list panel, and calculation panel. The product list panel is containing or shows the available product of the pharmacy this can be added to the item list by click the product row. Each added products have a 1 quantity as the default value of the item and when the product already exists on the item list, the quantity of the product will be automatically added 1 quantity. The Item List shows the list of products that the customer wants to buy. Each item's quantity can be modified and removed from the list. To remove the Item, just simply click the item row and the trash icon button above the panel will be enabled and by clicking the button, it will remove the item from the list and re-calculate the total. This project also generates a printable receipt and report. It has a simple user interface and user-friendly functionalities.

Project Features

Admin Panel

  • Secure Login/Logout
  • Home Page
    • Display Lists Summary
    • Display Product Available Stocks
    • Restock product when stock availability is below 50
  • Manage Product/Drug Category List (CRUD)
  • Manage Products List (CRUD)
  • Manage Stocks (CRUD)
  • Transaction
    • POS
    • Payment Modal
    • Printable Receipt
  • Sales
    • Display a Date-wise Sales Transaction Report
    • Print Date-wise Report
    • View Transaction Receipt
    • Print Transaction Receipt
    • Delete Transaction
  • Manage User List (CRUD)
  • Manage Account Credentials

Cashier

  • Secure Login/Logout
  • Home Page
    • Display Lists Summary
    • Display Product Available Stocks
  • Transaction
    • POS
    • Payment Modal
    • Printable Receipt
  • Sales
    • Displays only data processed by the current cashier
    • Display a Date-wise Sales Transaction Report
    • Print Date-wise Report
    • View Transaction Receipt
    • Print Transaction Receipt
  • Manage Account Credentials

Some of the System Snapshots

Home Page

Pharmacy's Point of Sale System

Product List

Pharmacy's Point of Sale System

Stock List

Pharmacy's Point of Sale System

Transaction Page/POS

Pharmacy's Point of Sale System

Payment/Tender Amount Modal

Pharmacy's Point of Sale System

Printable Transaction's Receipt Modal

Pharmacy's Point of Sale System

Sales Report's Page

Pharmacy's Point of Sale System

The project source code is free to download on this website. Feel Free to download and modify the source code the way you wanter. Follow the instruction below to run this project.

How to Run ??

Requirements

  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)

Installation/Setup

  1. Open your XAMPP/WAMP's php.ini file and uncomment the sqlite3 and save the file.
  2. Open your XAMPP/WAMP's Control Panel and start Apache.
  3. Extract the downloaded source code zip file.
  4. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  5. Browse the Pharmacy's Point of Sale System in a browser. i.e. http://localhost/pharmacy/.

Default Admin Access

Username: admin
Password: admin123

Sample Cashier Access

Username: jsmith
Password: jsmith

You can also create a new user on the admin page. The default password of the new user will be the same as his/her username.

DEMO VIDEO

That's it! You can now explore the features and functionalities of this Pharmacy's Point of Sale System project in PHP and MySQL Database. I hope this will help you with what you are looking for and you'll find something useful for your future PHP Projects.

Explore more on this website for more Free Source Codes and Tutorials.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byrobertstra (not verified)on Thu, 10/27/2022 - 19:21

Hi everyone There is a error in manage_account.php Where "admin_list" and "admin_id" we need change to "user_list" and "user_id"
Submitted byahmad haythem (not verified)on Tue, 01/10/2023 - 20:15

i did all Installation/Setup error shows: Fatal error: Uncaught Error: Class "SQLite3" not found in C:\xampp\htdocs\pharmacy\DBConnection.php:9 Stack trace: #0 C:\xampp\htdocs\pharmacy\login.php(7): require_once() #1 {main} thrown in C:\xampp\htdocs\pharmacy\DBConnection.php on line 9

First, Products sold does not deduct from the stocks and also when there is a stock of say 30 of a particular product and you try to sell more than there is in stock say 33, it goes through and moreover the stock never reduces after sale

Add new comment