Pharmacy Store Report
Pharmacy Store Report
Pharmacy Store Report
CHAPTER 1
INTRODUCTION
1.1 COURSE OBJECTIVES
This is the user friendly application for the pharmacist it reduces the burden and
helps to maintain all the sections of the pharmacy such as medicine, billing.
In this pharmacy store this will manage the billing or inventory process, including
safest data stores about the medicine it searches fastly and update of medicines.
In the pharmacy store it is easy to use the user can do pharmacy, actions without
the ambiguities etc.,
This will minimize time and the resources by which we search the medicines
information you can get the information or data very quickly/quickest time.
The pharmacy store is used because of ensuring, effective, clear information or data
saving as well as work on the pharmacy medical.
The list of medicines (drugs) dispensed to the patient that can be viewed for the
monitoring also it will be able to generate the reports of the patient of the list of
medicines (drugs).
The pharmacy store project is written in python. The purpose of this pharmacy store is to
improve the maintenance and manipulation of the medicine in the medicals. This project
will minimize the time and resource by maintaining the details of the medicine
systematically so that the data can be used in possible quickest time. While the resource
which is minimized is workforce, money, paper etc.
The system is user-friendly and will help the pharmacist. The project will reduce the burden
on pharmacist or user and will make the system efficient by providing the more accurate
details about medicine.
This project manages all the information about medicines, company, sells, and medicines.
The purpose of this project is to build an application program to reduce the manual work
for managing the medicines, stocks, company, and inventory. It tracks all the details about
the inventory, pharmacy, sells.
1.3 OUTCOMES
In this project provides the searching facilities based on various factors. Such as medicines,
inventory, pharmacy and sells. The transactions are executed in offline mode, hence online
data for medicines, stocks and it also tracks all the information about the stocks, company,
pharmacy manage the information of stocks shows the information and description of the
medicines and the inventory.
All the fields such as the medicines, inventory, sells are validated and does not take invalid
values it also generates the report on medicines or tablets, stocks, and company scope of
python is growing day by day. In this pharmacy report we can report all the reports of
pharmacy in this.
Sells report it generates reports related to sells stocks report in this you can generate
filtered of stocks, pharmacy, inventory sells, company, medicines has facility from dynamic
search so you can filter the records run time. To do this pharmacy project we are using
python. The main modules available in this project are pharmacy module which manages
the functionally of pharmacy.
CHAPTER 2
REQUIREMENTS SPECIFICATION
2.1 HARDWARE SPECIFICATIONS:-
Processor: Intel i3 or greater
RAM: 512 MB or more
Hard disk: 256gh or more
CHAPTER-3
CUSTOMER
MEDICINE
BILLING
STOCK
COMPANY
The CUSTOMER entity has the following attributes – cid, cname, mname, units, phone no.
The MEDICINE entity has the following attributes – mid, mname, mcompany, mcost, mdose
The BILLING entity has the following attributes – a unique bid, bnum, bitems
The STOCK entity has the following attributes – sid, snum, sitems
The COMPANY entity has the following attributes – comid, com_name, com_type
3.2 Keys:
i) Primary key is used to determine the other attribute of the tables uniquely.
ii) Foreign key is used to derive the primary key values to another tables as foreign
values, hence it is called as the foreign key.
own many cars where both customer and car are totally participating in the
relationship.
The purpose of this Pharmacy store project is to improve the maintenance and
manipulation of the drugs in the medicals. The pharmacy management system will be used
to minimize the time and resource by maintaining the details of the drug systemically so
that the data can be used in possible quickest time. While the resource which is minimized
are workforce, money, papers, etc. The system is user-friendly and will help the
pharmacist. This Pharmacy Management System will reduce the burden on pharmacist and
will make the system efficient by providing the more accurate details about drugs in the
medical.
The pharmacy store project is written in python. The purpose of this pharmacy store is to
improve the maintenance and manipulation of the medicine in the medicals. This project
will minimize the time and resource by maintaining the details of the medicine
systematically so that the data can be used in possible quickest time. While the resource
which is minimized is workforce, money, paper etc.
The system is user-friendly and will help the pharmacist. The project will reduce the burden
on pharmacist or user and will make the system efficient by providing the more accurate
details about medicine.
This project manages all the information about medicines, company, sells, and medicines.
The purpose of this project is to build an application program to reduce the manual work
for managing the medicines, stocks, company, and inventory. It tracks all the details about
the inventory, pharmacy, sells.
CHAPTER 4
CREATE TABLES
CUSTOMER
MEDICINES
BILLING
COMPANY
STOCK
BUYS
HAVE
CHAPTER 5
Backend of the project, database car is created. All tables such as car, customer, employee,
service and bill are stored. Database and python gui are connected with the help of mysql-
connector. Whenever there is a addition, deletion or updation through gui the change will
be reflected on database too.
BENEFITS:-
MySQL is the world’s most popular open source database,enabling the cost effective
delivery of reliable, high performance and scalable web-based and embedded database
applications.
MySQL is easy to use, yet extremely powerful, secure and scalable. And because of its small
size and speed.
CHAPTER 6
PYTHON FEATURE
6.1 EASY TO CODE AND READ
6.2 EXPRESSIVE
First, let’s learn about expressiveness. Imagine that we have two languages P and Q, and all
programs that can be made in P can be made in Q using local transformations. There are
some programs that can be made in Q, but not in P, using local transformations. Then, Q is
said to be more expressive than P. This programming language provides us with a myriad
of constructs that help us focus on the solution more rather than that on the syntax. This is
one of the best and most impressive python features that tell you why one should learn
Python.
6.3 PROTABLE
Let’s assume that a user has written a code for his Windows machine. Now if he has to run
the same code in Mac then he will have to make changes to the code. But when it comes to
Pythons that’s not a problem. One can take a python code and run it on any machines
without making and changes provided user avoid and system dependent feature. This
makes it a portable language.
6.4 HIGHLEVEL
Python is a highl evel language. Which basically means that’s the programmers need not
remember the system architecture nor does the programmer have to manage the memory.
This makes it more programming friendly which is one of the main features of this
programming language.
When we download python, it downloads with a large library that one can use so he
does’nt have to write his own code for every single thing. There are libraries for regular
expressions, documentation-generation, unit-testing, web browsers, threading, databases,
CGI, email, image manipulation, and a lot of other functionality.
Python language is also a portable language.for example, if we have python code for
windows and if we want to run this code on other platform such as Linux, Unix and Mac
then we do not need to change it, we can run this code on any platform.
Python is also an integrated language because we can easily integrated python with other
language like c, c++ etc.
Python is an Interpreted Language. Because python code is executed line by line at a time.
like other language c, c++, java etc there is no need to compile python code this makes it
easier to debug our code. The source code of python is converted into an immediate form
called byte code.
CHAPTER 7
TKINTER WIDGETS
Tkinter is standard GUI library for Python. When combined with Tkinter, Python provides a
fast and easy way to create GUI applications. Tkinter provides a powerful object-oriented
interface to the Tk GUI toolkit. Some of the GUI Widgets provided by Tkinter are as follows:
1. Button
2. Label
3. Entry
4. Menu
5. Message box
7.1 BUTTON
The Button widget is used to add buttons in your application.
The general syntax is: “w=Button(master, option=value)” , master is the parameter used to
represent it.
7.2 LABEL
This widget implements a display box where you can place text or images. The text
displayed by this widget can be updated at any time you want.
The general syntax is:
W = Label ( root, option, …)
7.3 ENTRY
Entry is used to input the single line text entry from the user and For multi-line text input,
Text widget is used. The general syntax is:
“w=Entry(master, option=value)” , master is the parameter used to represent the parent
window.
7.4 MENU
The Menu widget will be used to provide various commands to a user and These
commands are contained inside Menubutton. It is a part of top-down menu which stays on
the window all the time. For Every menubutton has its own functionality. The general
syntax is “w = MenuButton(master, option=value)” ,where master is the parameter used to
represent the parent window.
CHAPTER 8
IMPLEMENTATION
def restart_program():
python = sys.executable
os.execl(python, python, * sys.argv)
def create_medicine_table():
c.execute('CREATE TABLE IF NOT EXISTS Medicine(Id INTEGER PRIMARY KEY, Name
VARCHAR NOT NULL, Company VARCHAR NOT NULL, Cost INTEGER NOT NULL) ')
def create_bill_table():
c.execute('CREATE TABLE IF NOT EXISTS Bill(Id INTEGER PRIMARY KEY, Buyer VARCHAR
NOT NULL, MedicineName VARCHAR NOT NULL, UnitsBought INTEGER NOT NULL) ')
class PharmacyStore(tk.Tk):
def __init__(self, *args, **kwargs):
tk.Tk.__init__(self, *args, **kwargs)
tk.Tk.wm_title(self, "Pharmacy Store")
container = tk.Frame(self)
container.pack(side="top", fill ="both", expand= True)
container.grid_rowconfigure(0, weight=1)
container.grid_columnconfigure(0, weight=1)
self.frames = {}
for page in (StartPage, Pageone, Pagetwo, Pagethree, Pagefour, Pagefive):#, Pagesix):
frame = page(container, self)
self.frames[page] = frame
frame.grid(row=0, column=0, sticky="nsew")
self.show_frame(StartPage)
def dynamic_page(self, page, parent, var):
if var is not None:
self.frames[page] = page(parent, self, var)
def show_frame(self, cont):
for frame in self.frames.values():
frame.grid_remove()
frame = self.frames[cont]
frame.grid()
frame.tkraise()
class StartPage(tk.Frame):
def __init__(self, parent, controller):
tk.Frame.__init__(self,parent)
label = tk.Label(self, text="MAIN MENU", font = HEADING_FONT)
option1 = tk.Label(self, text="Add a Medicine to DataBase", font = LARGE_FONT)
option2 = tk.Label(self, text="Buy a Medicine", font = LARGE_FONT)
option3 = tk.Label(self, text="Details Of Specific Medicine", font = LARGE_FONT)
class Pageone(tk.Frame):
def __init__(self, parent, controller):
tk.Frame.__init__(self,parent)
label = tk.Label(self, text="ADD A MEDICINE", font = HEADING_FONT)
entry1 = tk.Entry(self)
entry2 = tk.Entry(self)
entry3 = tk.Entry(self)
class Pagetwo(tk.Frame):
def __init__(self, parent, controller):
tk.Frame.__init__(self,parent)
label = tk.Label(self, text="BUY A MEDICINE", font = HEADING_FONT)
option0 = tk.Label(self, text="Buyer Name : ", font = LARGE_FONT)
option1 = tk.Label(self, text="Medicine Name : ", font = LARGE_FONT)
option2 = tk.Label(self, text="Units Bought : ", font = LARGE_FONT)
label.grid(row=1, column=1,columnspan=2, padx = 20, pady=20)
option0.grid(row=2,column=1,padx = 20, pady=20)
option1.grid(row=3,column=1,padx = 20, pady=20)
option2.grid(row=4,column=1,padx = 20, pady=20)
class Pageseven(tk.Frame):
row = None
def __init__(self, parent, controller, ROW):
tk.Frame.__init__(self,parent)
row = ROW
option2 = tk.Label(self, text="NAME", font = LARGE_FONT)
option3 = tk.Label(self, text="COMPANY", font = LARGE_FONT)
option4 = tk.Label(self, text="COST", font = LARGE_FONT)
option2.grid(row=2,column=0,padx = 20, pady=20)
option3.grid(row=2,column=1,padx = 20, pady=20)
option4.grid(row=2,column=2,padx = 20, pady=20)
index = 3
for row in ROW:
#print(row)
tk.Label(self, text=row[1], font = LARGE_FONT).grid(row=index, column=0,padx = 20,
pady=20)
with conn:
c = conn.cursor()
c.execute('SELECT Bill.Buyer, Bill.MedicineName, Medicine.Company,
Medicine.Cost*Bill.UnitsBought AS Cost FROM Bill INNER JOIN Medicine ON
Bill.MedicineName = Medicine.Name')
index=3
for row in c.fetchall():
#print(row)
tk.Label(self, text=row[0], font = LARGE_FONT).grid(row=index, column=0,padx = 20,
pady=20)
CHAPTER 9
OUTPUT SNAPSHOTS
CHAPTER 10
CONCLUSION
Pharmacy store is actually software which handle the essential data and save the data and
actually about the database of a pharmacy and it's managing. This software help in
effectively management of the pharmaceutical store or shop. It provide the statistics about
medicine or drugs which are in stocks which data can also be updated and edited. It works
as per the requirement of the user and have options accordingly. It allow user to enter
manufacturing as well as the expiry date of medicine placing in stock and for sales
transaction. This software also have ability to print the bill and invoices etc. The record of
supplier’s supplies can also be saved in it. There is other function available too. The main
purpose is effectively and easily handling of pharmacy data.
Simple Pharmacy Management System project is written in Python. The project file
contains a python script (project.py) and database files. This is a simple GUI based project
which is very easy to understand and use. Talking about the system, it contains all the basic
functions which include adding, viewing, deleting and updating items. In order to add a
medicine detail, the user has to provide its name, price, quantity, category, and discount.
This simple GUI based Pharmacy Management system provides the simplest management
of medicine items. In short, this projects mainly focus on CRUD. There’s an external
database connection file used in this mini project to save user’s data permanently.
In order to run the project, you must have installed Python, on your PC. This is a simple GUI
Based system.
REFERENCES
[1] WIKIPEDIA