Medical Store Management System (1)
Medical Store Management System (1)
Medical Store Management System (1)
S
ALANKUPPAM
COMPUTER SCIENCE
PROJECT
SESSION : 2024-25
A PROJECT REPORT ON
“MEDICAL STORE
MANAGEMENT SYSTEM”
SUBMITTED BY:
NAME : ARAVIND .A
CLASS : XII- A1
REG NO :
BONAFIDE CERTIFICATE
This is to certify that the project entitled Medical Store
Management System is a Bonafide work done by ARAVIND.A
Studying in class XII during the academic year 2024-2025 in
G.H.S.S ALANKUPPAM, PUDUCHERRY-605111 under the
supervision of Mr.A.Auxilian Prabhu M.Sc. B.Ed Instructor
in computer science submitted for ALL INDIA SENIOR
SECONDARY SCHOOL CERTIFICATE PRACTICAL
EXAMINATION.
SIGNATURE OF EXTERNAL
DECLARATION
efforts.
ARAVIND.A
Acknowledgement
this project.
Table of Contents
1 Project Description
2 Coding
3 Screenshot
4 System Requirements
5 Bibliography
Project Description
`
Coding
import sys
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',password='manager',database='medical_store')
c1=conn.cursor()
from time import gmtime, strftime
a=strftime("%a ,%d %b %y %H:%M:%S",gmtime())
if conn.is_connected:
print(" WELCOME TO SS MEDICAL STORE ")
print(a)
print("1. Login")
print("2. Exit")
print()
option=int(input("Enter your choise : "))
if option==1:
print()
user=input('User Name : ')
user=user.upper()
c1.execute("select * from account_details where User_Name like '" + user + "'")
datas=c1.fetchall()
for i in datas:
value_1=i[0]
value_2=i[1]
if user==value_1:
password=input('Password :
') password=password.upper()
if password==value_2:
print()
print('Login successfull')
print()
print("11.Customers
Account") print("12.Medicine
Cost") print("3.Bill")
print()
option=int(input("enter a option:"))
if option==11:
account_number=int(input("enter your acct_number:"))
patient_name=input("enter your name:")
age=int(input("enter your age:"))
address=input("enter your address:")
phone_number=int(input("enter your number:"))
balance_amount=float(input("enter your amount:"))
x="insert into customers_details
values("+str(account_number)+",'"+patient_name+"',"+str(age)+",'"+address+"',"+str(phone_nu mber)
+","+str(balance_amount)+")"
print(x)
c1.execute(x)
print("Account created congrats")
conn.commit()
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',password='manager',database='medical_store')
c1=conn.cursor()
choice=int(input("enter your choice:"))
if choice==2:
c1.execute("insert into medicines_details values('paracetamal
250mg',325674,1.5,1,5)")
c1.execute("insert into medicines_details values('amoxylin',647890,1,1,4)")
c1.execute("insert into medicines_details values('zinc sulphide',546783,1.5,0.5,3.5)")
c1.execute("insert into medicines_details values('polodb 500mg',568903,3,2.5,10)")
c1.execute("insert into medicines_details values('paracetamal
500mg',325679,2,1.5,6)")
c1.execute("insert into medicines_details values('vicks action 500',250348,1,0.5,5)")
c1.execute("insert into medicines_details values('dolo 500mg',789541,3,2.5,10)")
c1.execute("insert into medicines_details values('ferric sulphide',546784,1.5,0.5,3.5)")
print("Records Created")
conn.commit()
if option==3:
print(a)
patient_name=input("enter the patient_name :")
no=int(input('enter the number of medicine:'))
print('customer name:',patient_name)
for i in range (no):
med_name=input('enter medicine name : ')
c1.execute("select medicine_code,gst,sgst,total_cost from medicines_details
where medicine_name like '" + str(med_name) +"'" )
data=c1.fetchall()
for row in data:
print('medicine_code
of',med_name,':',row[0]) print('gst
of',med_name,':',row[1])
print('sgst of',med_name,':',row[2])
print('cost_per_item
of',med_name,':',row[3]) conn.commit()
account_number=input('enter account_number:')
c1.execute("select balance_amount from customers_details where
account_number like'"+str(account_number)+"'")
datas=c1.fetchall()
datas=list(datas[0])
datas=datas[0]
print(datas)
conn.commit()
print("rows affected:",c1.rowcount)
conn.commit()
quantity=int(input("enter the quantity:"))
total_amount=row[3]*quantity
print("total_amount
of",med_name,':',total_amount)
v_sql_insert="insert into SS_bill
(medicine_name,medicine_code,gst,sgst,cost_per_item,quantity,discount_on_balance_amount,to
tal_amount)values('{}',{},{},{},{},{},{},{})".format(med_name,row[0],row[1],row[2],row[3],q
uantity,datas,total_amount)
print(v_sql_insert)
c1.execute(v_sql_insert)
conn.commit()
print("Records added")
else:
print('Invalid Password')
print('Tryagain')
elif option==2:
print(" THANK YOU ")
sys.exit()
Screenshot
System Requirements
HARDWARE REQUIRED
SOFTWARE REQUIRED
Python 3.9.1
3. Website: https://www.w3resource.com