SUPERMARKET MANAGEMENT
Introduction
The Supermarket Management System (SMS) is designed to streamline and automate
the operations of a grocery store. This software facilitates the maintenance of critical
data such as customer details, product inventory, and worker information. By using the
system, store owners and managers can efficiently manage their shop’s activities,
including keeping track of incoming and outgoing goods, sales transactions, and
employee details. The system aims to improve overall shop management, minimize
errors, and ensure a smooth, organized workflow.
Key Features:
1. Customer Management:
o Customer Registration: Capture customer details such as name, contact
information, address, and purchase history.
o Customer Transactions: Record each purchase made by customers and
maintain a history of transactions for reference or promotional offers.
2. Product Management:
o Inventory Management: Maintain a list of all grocery products, including
details like product name, category, stock levels, price, and supplier
information.
o Stock Updates: Automatically update product stock when items are sold
or new stock is added.
o Product Categorization: Organize products into categories like dairy,
vegetables, snacks, beverages, etc., to facilitate easy searching and
sorting.
3. Sales & Billing:
o Point of Sale (POS) System: A seamless billing system to process
customer purchases, calculate totals, and provide receipts.
o Discounts & Offers: Apply promotional offers, discounts, or loyalty points
to sales transactions.
o Transaction History: Record each sale for future reference and track
revenue.
4. Worker Management:
o Employee Details: Maintain detailed records of workers, including their
roles, contact details, and work schedules.
o Attendance and Payroll: Track employee attendance and generate payroll
for the workers based on their shifts and hours worked.
o Performance Monitoring: Keep records of employee performance for
analysis and improvement.
5. Stock Management:
o Stock In/Out Records: Keep track of the quantity of products coming in
and going out, including the source (supplier) and destination (sales or
returns).
o Stock Alerts: Set up alerts for when stock levels are low, ensuring that the
store never runs out of essential products.
o Reordering: Automatically generate purchase orders when products are
running low.
6. Reports and Analytics:
o Sales Reports: Generate reports on daily, weekly, monthly, or yearly sales.
o Inventory Reports: Track the current inventory status, including products
that are low in stock.
o Employee Performance Reports: Analyze work hours, sales performance,
and productivity of workers.
o Profit & Loss Reports: Calculate the store’s profit and loss over a given
period.
7. Security & User Access:
o User Roles: Different user roles such as admin, cashier, and manager,
with different levels of access to the system’s features.
o Authentication: Secure login for authorized personnel to prevent
unauthorized access to sensitive data.
8. Backup and Restore:
o Data Backup: Regularly back up all data to ensure no loss of records.
o Data Restore: Ability to restore data in case of accidental deletion or
corruption
HARDWARES AND SOFTWARES
REQUIRED
• HARDWARES
1. Desktop Computer
2. PC
• SOFTWARES
1. Python (latest version)
2. MySQL
3. Python Connector Module
Source Code:
import mysql.connector
mydb=sql.connector.connect(host='localhost',user='root',passwd='root',database='sup
ermarket')
mycursor=mydb.cursor()
print('successfully connected')
#PAGE 1
print(“grocery shop management system”)
print(“1.login”)
print(“2. exit”)
choice=int(input('enter your choice:'))
if choice==1:
username=input('enter your user name=')
password=input('enter your password=')
while username=='mahika' and password=='mahika123':
print (“connected successfully”)
# ADDING NEW ITEMS
def add_food():
mydb=pro.connect(host="localhost",user="root",password="root",database="food")
mycursor=mydb.cursor()
ID=int(input("Enter the item ID:"))
Nme=input("Enter the item name:")
Price=int(input("Enter the Price of Food:"))
Category=input("Enter the Food Type:")
mydb.execute("insert into item values ({},'{}',{},'{}')".format(ID,Nme,Price,Category))
print("ITEMS ADDED SUCCESSFULLY")
mydb.commit()
#ALL TABLES
print('1.customer details')
print('2.product details')
print('3.worker details')
print('4.see all customer details')
print('5.see all product details')
print('6.see all worker details')
print('7.see one customer details')
print('8.see one product details')
print('9.see one worker details')
print('10.stocks')
#UPDATING DATA
choice=int(input('enter the choice'))
if choice==1:
cust_name=input('enter your name=')
phone_no=int(input('enter your phone number='))
cost=float(input('enter your cost='))
mycursor.execute(“ Insert into customer details values(“+str(phoneno)+”,
“+(cust_name)+”, “+str(cost)+”))
mydb.commit()
print('data is updated')
elif choice==2:
product_name=input('enter product name=')
product_cost=float(input('enter the cost='))
mydb.execute(="insert into product_details
values(""'"+(product_name)+"',"+str(product_cost)+")")
mydb.commit()
print('data is updated')
elif choice==3:
worker_name=input('enter your name=')
worker_work=input('enter your work=')
worker_age=int(input('enter your age='))
worker_salary=float(input('enter your salary='))
phone_no =int(input('enter your phone number=')
mydb.execute(="insert into worker_details values(" "'"+(worker_name)+"',"
"'"+(worker_work)+"',"+str(worker_age)+","+str(worker_salary)+","+str(phone_no)+ ")")
mydb.commit()
print('data is updated')
#FETCHING RECORD
elif choice==4:
mycursor=mydb.cursor()
mycursor.execute('select*from customer_details')
record=mycursor.fetchall()
for i in record:
print(i)
elif choice==5:
mycursor=mydb.cursor()
mycursor.execute('select*from product_details')
record=mycursor.fetchall()
for i in record:
print(i)
elif choice==6:
mycursor=mydb.cursor()
mycursor.execute('select*from worker_details')
record=mycursor.fetchall()
for i in record:
print(i)
elif choice==7:
a=input('enter your name')
t='select*from customer_details where cust_name=("{}")'.format(a)
mycursor.execute(t)
v=mycursor.fetchall()
for i in v:
print(v)
elif choice==8:
pd=input('enter your product_name')
t='select*from product_details where product_name=("{}")'.format(pd)
mycursor.execute(t)
v=mycursor.fetchall()
for i in v:
print(v)
elif choice==9:
nme=input('enter your name')
t='select*from worker_details where worker_name=("{}")'.format(nme)
mycursor.execute(t)
v=mycursor.fetchall()
for i in v:
print(v)
print('############')
OUTPUT
BIBLIOGRAPHY
• COMPUTER SCIENCE With Python - Class XII By :
Sumita Arora
• Website: https://www.w3resource.com
• Scribd.com
• Slideshare.com
CONCLUSION
The Supermarket Management System (SMS) offers an efficient and
automated approach to handling various operations within a supermarket.
Using Python for the backend and SQL for database management, the
system simplifies tasks such as inventory management, sales tracking,
customer information management, and employee record-keeping. The
integration of SQL databases ensures that data is securely stored and can
be accessed easily, providing real-time information for decision-making.
The system's features—such as automated stock management, point of
sale (POS) systems, customer transaction tracking, and employee
management—reduce manual intervention and human errors, ensuring
smooth and efficient operations. The generation of various analytical
reports allows managers to make data-driven decisions, optimize stock
levels, improve customer service, and monitor employee performance.
Overall, the Supermarket Management System enhances the
supermarket’s operational efficiency and provides a competitive edge in
the market by improving workflow, saving time, and reducing operational
costs.
Future of the Project
The Supermarket Management System has great potential for future growth
and development, with several opportunities for enhancement:
1. Integration with Online Shopping Platforms:
o As e-commerce continues to grow, the system can be
integrated with online shopping platforms, allowing
supermarkets to handle both in-store and online orders
seamlessly. This would improve convenience for customers
and expand the supermarket's reach.
2. Advanced Analytics and AI Integration:
o With the integration of advanced data analytics and artificial
intelligence, the system could predict sales trends, optimize
inventory management, and personalize promotions based on
customer behavior. AI could also help in demand forecasting,
reducing stockouts and overstock situations.
3. Mobile App Development:
o A mobile application can be developed to allow customers to
browse products, track their purchase history, and receive
notifications about offers and discounts. Additionally, store
managers could monitor supermarket operations remotely
using the mobile app.
4. Supplier Integration:
o By linking the system with suppliers’ systems, supermarkets
can automate order placements and streamline their supply
chain management. This would lead to more accurate stock
replenishment and timely delivery of goods.
5. Blockchain for Transparency and Security:
o Implementing blockchain technology could improve
transparency in inventory management and ensure the
authenticity and traceability of products, especially for high-
value or perishable items.
6. IoT Integration:
o Integrating Internet of Things (IoT) devices into the system
could provide real-time monitoring of factors such as
temperature control for perishable items, stock shelf levels,
and even customer movement patterns within the store. This
would enhance both operational efficiency and customer
experience.
7. Cloud Computing:
o Moving the system to the cloud would allow for better
scalability, remote access, and more robust data backup and
recovery options. Cloud-based systems also facilitate easier
software updates and maintenance.
8. Loyalty Programs and CRM:
o The future version of the system could incorporate customer
relationship management (CRM) features and loyalty
programs, enabling supermarkets to offer rewards, discounts,
and promotions based on customer purchasing patterns.
By focusing on these developments, the Supermarket Management System
can evolve into a more comprehensive, cutting-edge platform that not only
streamlines operations but also provides a competitive advantage in a
rapidly changing retail landscape.
ACKNOWLEDGEMENT
I want to deeply thank our Principal Ms. Raina Krishnatray
for her support of our project and for offering all the
necessary resources. My greatest gratitude goes out to Ms.
Chhavi Singh , my computer science teacher, for her
invaluable assistance, direction, and encouragement,
without which this project wouldn't have been
accomplished.
I would also like to express my gratitude to my family for
their various contributions, moral and financial support,
and the completion of the project.
AMITY INTERNATIONAL SCHOOL
VASUNDHARA, SECTOR-1
CERTIFICATE
This is to certify that, Mahika Nagar a student of class XII-A
has successfully completed the research on the below
mentioned project under the guidance of Ms. Chhavi
Singh during the year 2024-25 in partial fulfilment of
computer science practical examination conducted by
AISSCE.
Signature of Signature
Computer science Teacher of External