0% found this document useful (0 votes)
80 views22 pages

Mobile Shop Management Software

Uploaded by

masterlab273
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views22 pages

Mobile Shop Management Software

Uploaded by

masterlab273
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

MOBILE SHOP

MANAGEMENT
SYSTEM

1
INDEX
S.No. Contents Page no

1. Acknowledgement 3

2. Introduction 4

3. Objectives of the project 5

4. Proposed system 6
System development life
5. 7-8
cycle
6. System design 9
Hardware and software
7. 10
requirements
8. Source code 11-17

9. Output 18-20

10. Conclusion 21

11. Bibliography 22

2
ACKNOWLEDGMENT
Apart from the efforts of me, the success of any project depends
largely on the encouragement and guidelines of many others. I take
this opportunity to express my gratitude to the people who have been
instrumental in the successful completion of this project.
I express my sincere thanks to Mrs. Sona, teacher in-charge who
critically reviewed my project and helped in solving each problem,
occurred during implementation of the project.
I would like to thank Nithyananda Bhavan English Medium
School for providing me with the necessary resources, infrastructure,
and opportunities to pursue my passion for Computer Science.
I would also like to thank my parents for their constant support,
encouragement, and motivation.
The guidance and support received from all the members who
contributed and who are contributing to this project, was vital for the
success of the project. I am grateful for their constant support and
help
I gratefully acknowledge the contribution of the individuals who
contributed in bringing this project up to this level.
I thank God Almighty for blessing me with the knowledge, skills,
and abilities to complete this project.

3
INTRODUCTION
The Mobile Shop Management is a comprehensive and integrated software
solution designed to streamline the management of mobile shop data,
enhance productivity, and improve decision-making. This system provides
a centralized platform for storing and managing information related to
customers mobiles mobile stock invoice sale and analysis of all data
altogether.
The system offers a range of features, including:
- Data Management: The system allows inserting customer details, new
mobile details, updating stock, sale database and invoice downloading.
- Secure Data Storage: The system ensures that all data is stored securely
- Reporting and Analytics: The system provides tools for generating reports
and analyzing data.

The Mobile Shop Management System aims to improve the efficiency and
effectiveness of mobile shop management by providing a user-friendly and
intuitive interface for managing customer and mobile data.

4
OBJECTIVES OF THIS
PROJECT
The objective of this project is to let the student apply the
programming knowledge into the real-world situation/problem and
exposed the students how programming skills helps in developing a
good software.
 Write programs utilizing modern software tools.
 Connect MySQL and python effectively when developing small to
medium sized projects.
 Connecting text files for soft printable copies.
 Write effective procedural code to solve small to medium sized
problems.
 Students will demonstrate a breadth of knowledge in computer
science, as exemplified in the areas of the system, theory and
software development.
 Students will demonstrate ability to conduct a research or applied
Computer Science project, require writing and presentation skills
which exemplify scholarly style in computer science.

5
PROPOSED SYSTEM
To replace the unending heaps of files with a much sophisticated
hard disk of the computer, one has the data management software.
Software has been an ascent in atomization of various organizations.
Many software products working are now in markets which have
held in making the organizations works easier and efficient. Data
management initially had to maintain a lot of ledgers and a lot of
paperwork has to be done. But now the software products on this
organizations has made their work faster and easier. Only the
software has to be loaded on the computer and the work can be done.
This saves lot of money. The works becomes fully automated and
data analysis can be easily done. More over now it is an age of
computers and automating such an organization give a better look.

6
SYSTEM DEVELOPMENT
LIFE CYCLE (SDLC)
The system Development Life Cycle as used in the construction
of the project

Planning Analysis Design

Support Implementa on

The system development life cycle is a project management


technique that divides complex project into smaller, more easily
managed segments or phrases. Segmenting projects allows
managers to verify the successful completion of project phases
before allocating resources to subsequent phases.
Software development projects typically include initiation,
planning, design, development, testing, implementation and
maintenance phases. However, the phases may be divided
differently depending on the organization involved.

7
PICTORIAL REPRESENTATION OF SLDC

8
SYSTEM DESIGN
This project is based on Python and python-MySQL connectivity.
mysql.connector is a python module that makes data storage easy
and effective. It has lot of function which make data manipulation
easy.

The python programming language has powerful features for


database programming. Python supports database like MySQL,
Oracle, and Sybase etc. Python also supports Data Definition
Language (DDL), Data Manipulation Language (DML) and data
query statements. For database programming, the python DB-API is
a widely used model that provide a database application
programming interface.

The different operation performed on this project are:


 Logging in with username and password
 Establish connection between python and MySQL
 Store data in a database
 Display records
 Update the record
 Search specific record
 Download invoice and store it in a file
9
HARDWARE AND SOFTWARE
REQUIREMENTS
HARDWARE REQUIREMENTS
1. PROCESSOR : INTEL OR AMD
2. MOTHERBOARD : MSI (B760 AND ABOVE)
OR GIGABYTE
(Z790 UD AND ABOVE)
3. RAM : 4GB AND ABOVE
4. HARD DISK : SATA OR NVME 100GB
AND ABOVE
5. EXTERNAL STORAGE : (IF BACKUP REQUIRED)
6. MONITOR : 15 INCH AND ABOVE
7. KEYBOARD AND MOUSE : (ANY)
8. PRINTER : (IF HARD COPY REQUIRED)

SOFTWARE REQUIREMENTS
1. Windows OS (7 and above)
2. Python
3. MySQL

10
SOURCE CODE
Create a python project of Mobile Shop Management System :-
 To insert customer and mobile data
 To insert billing information in a table
 To download invoice as text file
 To display tables as per requirement

TABLE STRUCTURES

Customer
Field Type Null Key Default Extra
id int NO PRI NULL auto_increment
name varchar(255) YES NULL
phone varchar(20) YES NULL
email varchar(255) YES NULL

Mobiles
Field Type Null Key Default Extra
id int NO PRI NULL auto_increment
model varchar(255) YES NULL
brand varchar(100) YES NULL
price int YES NULL
stock int YES NULL

11
Sales
field Type Null Key Default Extra
invoice_no int NO PRI NULL auto_increment
customer_id int YES NULL
customer_name varchar(255) YES NULL
customer_phone varchar(20) YES NULL
customer_email varchar(60) YES NULL
mobile_id int YES NULL
model varchar(255) YES NULL
brand varchar(255) YES NULL
sale_price decimal(10, 2) YES NULL
sale_date date YES NULL

12
SOLUTION

import mysql.connector as connector

def selectall_from(cursor_object, table_name):


cursor_object.execute("select*from " + table_name)
records = cursor_object.fetchall()
print()
for i in records:
print(i)
print()

# CUSTOMER DETAILS INSERTING


def c_insert_table(cursor_object, database):
no_data = int(input("Enter the number of customers you want to enter: "))
while no_data > 0:
try:
name = input("Enter customer name: ")
phone = input("Enter customer phone number: ")
email = input("Enter customer email: ")
insertcode = "insert into customers(name, phone, email) values('" + name + "','" + phone + "','" +
email + "')"
cursor_object.execute(insertcode)
database.commit()

print("Customer Id", "Name", "Phone number", "e-mail id", sep='|' + '\t' + '|')
selectall_from(cursor_object, "customers")
except:
print()
print("\t!!WRONG INPUT!!")
print()
no_data += 1
no_data -= 1

# MOBILE INSERTING

13
def m_insert_table(cursor_object, database):
no_data = int(input("Enter the number of records you want to enter: "))
while no_data > 0:
try:
model = input("Enter Model: ")
brand = input("Enter Brand name: ")
price = input("Enter price: ")
qty = input("Enter quantity: ")
insertcode = "insert into mobiles(model,brand,price,stock) values('" + model + "','" \
+ brand + "'," + price + "," + qty + ")"
cursor_object.execute(insertcode)
database.commit()

print("Mobile Id", "Model", "Brand", "Price", "Stock", sep='|' + '\t' + '|')


selectall_from(cursor_object, "mobiles")

except:
print()
print("\t!!WRONG INPUT!!")
print()
no_data += 1
no_data -= 1

# MOBILE STOCK UPDATE


def m_stock_update(cursor_object, database):
no_data = int(input("Enter the number of phones to update stock: "))
while no_data > 0:
try:
selectall_from(cursor_object, "mobiles")
mid = input("Enter mobile id: ")
nstock = input("enter new stock: ")
updatecode = "update mobiles set stock = " + nstock + " where id = " + mid
cursor_object.execute(updatecode)
database.commit()
except:
print()
print("\t!!WRONG INPUT!!")
print()

14
no_data += 1
no_data -= 1

def sale(cursor_object, database):


no_data = int(input("Enter the number of phones to sell: "))
while no_data > 0:
try:
phone = input("Enter mobile number: ")
cursor_object.execute("select*from customers where phone = '" + phone + "'")
crecord = cursor_object.fetchall()
crecord = crecord[0]
selectall_from(cursor_object, "mobiles")
mid = input("Enter mobile id: ")
cursor_object.execute("select*from mobiles where id = " + mid)
mrecord = cursor_object.fetchall()
mrecord=mrecord[0]
cid = str(crecord[0])
cname = crecord[1]
cphone = crecord[2]
cemail = crecord[3]
model = mrecord[1]
brand = mrecord[2]
price = input("Enter the sale price: ")
insertcode = "insert into sales(customer_id, customer_name, customer_phone, customer_email,
mobile_id, model, brand, sale_price, sale_date) " \
"values(" + cid + ",'" + cname + "','" + cphone + "','" + cemail + "'," + mid + ",'" + model +
"','" + brand + "'," + price + ", CURDATE())"
cursor_object.execute(insertcode)
database.commit()

nstock = int(mrecord[4]) - 1
updatecode = "update mobiles set stock = " + str(nstock) + " where id = " + mid
cursor_object.execute(updatecode)
database.commit()
except:
print()
print("\t!!WRONG INPUT!!")
print()

15
no_data += 1
no_data -= 1

def invoice(cursor_object):
invoicenumber = input("Enter invoice number: ")
cursor_object.execute("select*from sales where invoice_no = " + invoicenumber)
rec = cursor_object.fetchall()
rec = rec[0]
with open(invoicenumber + ".txt", mode='w') as f:
f.write("invoice number: " + invoicenumber + "\t\t\t\t")
f.write("issue date: " + str(rec[9]) + "\n")
f.write("Name: " + rec[2] + "\n")
f.write("Phone: " + rec[3] + "\n")
f.write("E-mail: " + rec[4] + "\n\n")
f.write("S.no\t\tMODEL\t\tBRAND\t\tPRICE\n")
f.write("1\t\t" + rec[6] + "\t\t" + rec[7] + "\t\t" + str(rec[8]) + "\n\n\n")
f.write("------------------------------------------------------------------------------------------------\n")
f.write("\t\tMobile Shop Management Software")

# ----------------------------------------------------------------------------------------------------------------------
# SOFTWARE
def software(cursor_object, database):
cursor_object = cursor_object
work_no = True
while work_no > 0:
print()
print("---------------------------------------------------------------------------------------")
print("For inserting customer details 1")
print("For inserting mobile details 2")
print("For updating mobile stock 3")
print("For Billing mobile 4")
print("For Invoice 5")
print("For viewing tables 6")
print("Exit 7")
choice = int(input("Enter the choice: "))

if choice == 1:

16
c_insert_table(cursor_object, database)

elif choice == 2:
m_insert_table(cursor_object, database)

elif choice == 3:
m_stock_update(cursor_object, database)

elif choice == 4:
sale(cursor_object, database)

elif choice == 5:
invoice(cursor_object)

elif choice == 6:
print("Table names: customers, mobiles, sales")
table_name = input("Enter table name: ")
selectall_from(cursor_object, table_name)

elif choice == 7:
print("! EXIT !")
break

else:
print("Select appropriate option")

# -----------------------------------------------------------------------------------------------------------------------

database = "mobile_shop"
database = connector.connect(host="localhost", user="root", passwd="1234", database=database)
cursor_object = database.cursor()
software(cursor_object, database)

17
SCREENSHOT AND
OUTPUT

18
19
20
CONCLUSION
This project Mobile Shop Management System will fulfill the
requirements of a Mobile.
The whole system is menu driven and hence user friendly.
The system is developed as easy as possible for the sake of user. This
system has been thoroughly tested and found to be error free. It has
more option for future development.

21
BIBILOGRPHY
 Computer Science with python – Class XII By: Preeti Arora

22

You might also like