The Medical Store Management System Project in Python is created using Python programming language.
The Medical Store Management System consists of a Python Script (main.py) and a database file.
This Python project with source code for the Medical Store Management System is primarily based on Tkinter.
This system has a graphical user interface applied by using the Python programming language and SQLite3.
This Project System for Medical Store Management has an easy-to-use interface and is built with respected customer service to allow stock maintenance, database access, and electronic documentation for billing purposes.
The program also encourages consumer computing discounts, and frequent revenue, and identifies measures to avoid possible loss of revenue.
This system platform is best for educational purposes or can be used to simplify the manual maintenance process of records and cash flows by a wide range of retail and wholesale outlets.
It’s more versatile and saves you time and money.
The Medical Store Management System measures and shows the overall daily sales and also tells the items about the expiry of the coming week.
In this tutorial, I will educate you on how to establish a Medical Store System, this tutorial consists of the downloadable Medical Store Management System Project in Python where in you alter it to fit your requirements.
Before you start to create a Medical Store Management System Project in Python, make sure you have PyCharm IDE installed in your computer.
By the way, if you are new to Python programming and don’t know what Python IDE to use, I have here a list of the Best Python IDE for Windows, Linux, Mac OS that will suit you.
Here are the steps on How to Create a Medical Store Management System Project in Python with Source Code.
- Create a Project Name.
First, open the PyCharm IDE click “File” select “New Project” and then create a project name after that click the “Create” button.
- Create a Python File.
Next, after creating a project name, “right” click the project name and the click “New” after that choose “Python File”.
- Name the Python File.
Last, choose the Python File name of the file "Medical-Store-Management-System" and then click "Enter". Creating python file names for Medical Store Management System Project in Python with Source Code
- The actual code
Finally, you can start coding, you are free to copy the code that being provided below.
In this module displayed the Admin main module of the system that can control all the modules of the system.
def open_win(): #OPENS MAIN MENU----------------------------------------------------------------------------MAIN MENU
global apt, flag
flag='apt'
apt=Tk()
apt.title("Interface")
Label(apt, text="EVANZ MEDICAL STORE COMPANY").grid(row=0,column=0,columnspan=3)
Label(apt, text='*'*80).grid(row=1,column=0,columnspan=3)
Label(apt, text='-'*80).grid(row=3,column=0,columnspan=3)
Label(apt, text="Stock Maintenance", bg='green', fg='white').grid(row=2,column=0)
Button(apt,text='New V.C.', width=25, bg='green', fg='white', command=val_cus).grid(row=4,column=0)
Button(apt,text='Add product to Stock', bg='green', fg='white', width=25,command=stock).grid(row=5,column=0)
Button(apt,text='Delete product from Stock', bg='red', fg='white', width=25, command=delete_stock).grid(row=6,column=0)
Label(apt, text="Access Database", bg='blue', fg='white').grid(row=2,column=1)
Button(apt,text='Modify',width=15, bg='blue', fg='white', command=modify).grid(row=4,column=1)
Button(apt,text='Search', width=15, bg='blue', fg='white', command=search).grid(row=5,column=1)
Button(apt,text='Expiry Check', bg='red', fg='white', width=15, command=exp_date).grid(row=6,column=1)
Label(apt, text="Handle Cash Flows", bg='skyblue', fg='black').grid(row=2,column=2)
Button(apt,text="Check Today's Revenue", bg='skyblue', fg='black', width=20,command=show_rev).grid(row=5,column=2)
Button(apt,text='Billing', width=20, bg='skyblue', fg='black', command=billing).grid(row=4,column=2)
Button(apt,text='Logout', bg='red', fg='white', width=20, command=again).grid(row=6, column=2)
apt.mainloop()
The code is given below, which is for adding new valued customers.
def val_cus(): #to enter new valued customer-----------------------------------------------------------NEW VALUED CUSTOMER
global val, flag, dbt, name_vc, add_vc, cur, c, vc_id
apt.destroy()
cur.execute("select * from cus")
flag='val'
val=Tk()
Label(val, bg='blue', fg='white',text="****ENTER VALUED CUSTOMER DETAILS****").grid(row=0,column=0,columnspan=3)
Label(val,text="-"*60).grid(row=1,column=0,columnspan=3)
Label(val,text="Name: ").grid(row=2,column=0)
name_vc=Entry(val)
name_vc.grid(row=2, column=1)
Label(val,text="Address: ").grid(row=3,column=0)
add_vc=Entry(val)
add_vc.grid(row=3, column=1)
Label(val,text="Value Id: ").grid(row=4,column=0)
vc_id=Entry(val)
vc_id.grid(row=4, column=1)
Button(val,text='Submit',bg='blue', fg='white',command=val_get).grid(row=5, column=1)
Button(val,text='Main Menu', bg='green', fg='white',command=main_menu).grid(row=5, column=2)
Label(val,text='-'*60).grid(row=6,column=0,columnspan=3)
val.mainloop()
In the code given below, which is for adding a new product.
def stock(): #add to stock window------------------------------------------------------------------------ADD TO STOCK
global cur, c, columns, accept, flag, sto, apt
apt.destroy()
flag='sto'
accept=['']*10
sto=Tk()
sto.title('STOCK ENTRY')
Label(sto,text='ENTER NEW PRODUCT DATA TO THE STOCK').grid(row=0,column=0,columnspan=2)
Label(sto,text='-'*50).grid(row=1,column=0,columnspan=2)
for i in range(1,len(columns)):
Label(sto,width=15,text=' '*(14-len(str(columns[i])))+str(columns[i])+':').grid(row=i+2,column=0)
accept[i]=Entry(sto)
accept[i].grid(row=i+2, column=1)
Button(sto,width=15,text='Submit', bg='blue', fg='white',command=submit).grid(row=12,column=1)
Label(sto,text='-'*165).grid(row=13,column=0,columnspan=7)
Button(sto,width=15,text='Reset', bg='red', fg='white',command=reset).grid(row=12,column=0)
Button(sto,width=15,text='Refresh stock',bg='skyblue', fg='black',command=ref).grid(row=12,column=4)
for i in range(1,6):
Label(sto,text=columns[i]).grid(row=14,column=i-1)
Label(sto,text='Exp Rack Manufacturer ').grid(row=14,column=5)
Button(sto,width=10,text='Main Menu', bg='green', fg='white',command=main_menu).grid(row=12,column=5)
ref()
sto.mainloop()
In the code given below, which is for the function of delete product.
def delete_stock(): #OPENS DELETE WINDOW----------------------------------------------------DELETES A PARTICULAR STOCK ITEM
global cur, c, flag, lb1, d
apt.destroy()
flag='d'
d=Tk()
d.title("Delete a product from Stock")
Label(d,text='Enter Product to delete:').grid(row=0,column=0)
Label(d,text='',width=30,bg='white').grid(row=0,column=1)
Label(d,text='Product').grid(row=2,column=0)
Label(d,text='Qty. Exp.dt. Cost ').grid(row=2,column=1)
ren()
b=Button(d,width=20,text='Delete', bg='red', fg='white',command=delt).grid(row=0,column=3)
b=Button(d,width=20,text='Main Menu', bg='green', fg='white',command=main_menu).grid(row=5,column=3)
d.mainloop()