Bookstore Final Project
Bookstore Final Project
INTRODUCTION
The project “BOOK STORE OVERSIGHT SYSTEM” includes some facilities for
the retail book shop to maintain records of the books and also search, display,
modification, delete etc.., the books available. This software searches the books data
which is store in the record. The software used for small shops for maintaining their
records related to books selling, printing the reports and costs savings, book distributions
transaction handling is one of the complex system to maintain overall transactions
handling is one of the complex system to maintain overall transactions in an easier
manner. Due to heavy demand of books in these competitive world´s data increase so
much books shop required up to date information about the customer who purchased
books or about the suppliers from where books are purchased. It requires large amount of
data to record and to store which are collected from the book house.
The main objective of ‘Book Store Oversight System´ is to manage the details
of books and salary details. It manages all the information about the books in
the organization and its sales record.
Provides the searching facilities of a particular books.
Manages the past data of sold books in the store which can be
useful of future reference.
Display the books availability in the store and existing employee
details.
.
1
1. 2.PROBLEMS, DEFINITION AND DESCRIPTIONS
At present, the wholesale and Retail outlets are working under manual management.
The client uses MYsql, All records related to Products , Sales, Suppliers, Orders,
Payment are stored in file..there is lot of duplicate work, and chance of mistake. When
the records are changed they need to update each and every file. In case of Customer
records, all information related to customers and the product which the customer has
purchased is to be stored in the Customers files. If the changes in the customer
profile(like Phone no., Address)occur, excel file must be updated. To manage the whole
data, the person maintaining records has to take great pain. Various files has to be
maintained for each separate process. There is no option to find previous saved records.
There is no security; anybody can access any report and sensitive data.
All records related to products, sales, Suppliers, Orders, Payment are stored in registers.
To manage the whole data, the person maintaining records has to take great pain.
Various registers has to be maintained for each separate process. Existing system, used
for the Management of sales dependent on human actions and responses (Manual
Management), which couldn´t be free fromerrors. In each process whether it is Product
Management, Maintaining Customer Records, Payment Management,Report
Generation, user has to pay attention to a greter extent while performing the tasks.
During the manual management, the tasks, which are to be performed by its users, are:
Maintenance of Customers
2
Records. Maintenance of Customers, Maintenance of Suppliers and Staff Records.
Searching and answer the query asked by other users. All these operations will lead to
continuous modifications in the database. In case of Customer records, all information
related to customers and the product which the customer has purchased is to be stored in
the Customers register. If the changes in the customer profile occur, registers must be
updated. For the maintenance of the payment records, the customer register has to be
checked to know the details of the product purchased by customer. Monthly payment of
installment needs record in the register to be updated. During issuing order of more
stock, the product register is required to check to availability of stock in hand. To
generate the reports based on the management requirement, will require extensive
searching of records. In case of Staff Record Management, the registers need to be
updated time to time as information (like Phone, Address)changes frequently.
One has to use the data management software. Software has been an ascent in
atomization various organizations. Many software products working are now in
markets, which have helped in making the organizations work easier and efficiently.
Data management initially had to maintain a lot of ledgers and a lot of paper work has
to be done but now software product on this organization has made their work faster
and easier. Now only this software has to be loaded on the computer and work can be
done. This prevents a lot of time and money. The work becomes fully automated and
any information regarding the organization can be obtained by clicking the button.
Moreover, now its an age of computers of and automating such an organization gives
the better look.
3
2. 3.HARDWARE AND SOFTWARE REQUIREMENTS
3.1 HARDWARE
Processor sped:4.1Ghz
RAM:2 GB or more
Hard disk:2GB
SOFTWARE
IDE:IDLE Python
4
4.ADVANTAGES AND LIMITATIONS
4.1 ADVANTAGES
5
4.2 LIMITATIONS
6
5.SPECIAL FEATURES OF LANGUAGE
Python:
Python is a popular programming language. It was created by guido van,
. rossum, and released in 1991.
It is used for:
Software development.
Data analysis
System scripting
FEATURES OF PYTHON:
• Python can connect to database system. It can also read and modify the
files.
• Python can be used to handle big data and perform complex mathematics.
7
6. MySQL
The data in a MySQL database are stored in tables which consists of columns
and rows.
* MySQL is a database system that runs on a server.
* MySQL is very fast, reliable, and easy to use database system. It use standard
SQL.
* MySQL complies on a number of platforms.
8
7.SOURCE CODE
mysql.connector
#CREATING DATABASE
mycursor=mydb.cursor()
mycursor.execute("use store")
while True:
print("""1:Signup
2:Login""")
ch=int(input("SIGNUP/LOGIN(1,2):"))
#SIGNUP
if ch==1:
username=input("USERNAME:")
pw=input("PASSWORD:")
9
mydb.commit()
#LOGIN
elif ch==2:
username=input("USERNAME:")
pot=mycursor.fetchone()
print("VALID USERNAME!!!!!!")
pw=input("PASSWORD:")
a=mycursor.fetchone()
if a is not None:
print("""+++++++++++++++++++++++
+++LOGIN SUCCESSFULL+++
+++++++++++++++++++++++""")
10
print("""===================================================
===================
=========================================================
=================""")
mydb.commit()
while(True):
print("""1:Add Books
2:Delete Books
3:Search Books
4:Staff Details
5:Sell Record
6:Available Books
#ADD BOOKS
if a==1:
genre=str(input("Genre:"))
quantity=int(input("Enter quantity:"))
row=mycursor.fetchone()
mydb.commit()
12
print("""++++++++++++++++++++++
++SUCCESSFULLY ADDED++
++++++++++++++++++++++""")
else:
mycursor.execute("insert into
Available_Books(bookname,genre,quantity,author,publication,price)
values('"+book+"','"+genre+"','"+str(quantity)+"','"+author+"','"+publication+"','
"+str(price)+"')")
mydb.commit()
print("""++++++++++++++++++++++
++SUCCESSFULLY ADDED++
++++++++++++++++++++++""")
#DELETE BOOKS
elif a==2:
print("AVAILABLE BOOKS...")
for x in mycursor:
print(x)
13
cusname=str(input("Enter customer name:"))
n=int(input("Enter quantity:"))
lk=mycursor.fetchone()
if max(lk)<n:
else:
log=mycursor.fetchone()
mydb.commit()
14
print("""++++++++++++++++++++++
++++++++++++++++++++++""")
else:
elif a==3:
print("""1:Search by name
2:Search by genre
3:Search by author""")
l=int(input("Search by?:"))
#BY BOOKNAME
if l==1:
tree=mycursor.fetchone()
if tree!=None:
15
print("""++++++++++++++++++++
++BOOK IS IN STOCK++
++++++++++++++++++++""")
else:
#BY GENRE
elif l==2:
poll=mycursor.fetchall()
print("""++++++++++++++++++++
++BOOK IS IN STOCK++
++++++++++++++++++++""")
for y in mycursor:
print(y)
16
else:
elif l==3:
home=mycursor.fetchall()
print("""++++++++++++++++++++
++BOOK IS IN STOCK++
++++++++++++++++++++""")
for z in mycursor:
print(z)
17
else:
mydb.commit()
#STAFF DETAILS
elif a==4:
print("2:Remove staff")
if ch==1:
fname=str(input("Enter Fullname:"))
gender=str(input("Gender(M/F/O):"))
age=int(input("Age:"))
add=str(input("Address:"))
mycursor.execute("insert into
Staff_details(name,gender,age,phonenumber,address)
values('"+fname+"','"+gender+"','"+str(age)+"','"+str(phno)+"','"+add+"')")
print("""+++++++++++++++++++++++++++++
18
+STAFF IS SUCCESSFULLY ADDED+
+++++++++++++++++++++++++++++""")
mydb.commit()
#REMOVE STAFF
elif ch==2:
toy=mycursor.fetchone()
print("""+++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++""")
mydb.commit()
else:
elif ch==3:
19
run=mycursor.fetchone()
for t in mycursor:
print(t)
for t in mycursor:
print(t)
else:
mydb.commit()
#SALES HISTORY
elif a==5:
if ty==1:
for u in mycursor:
print(u)
20
if ty==2:
if bb=="Y":
mydb.commit()
elif bb=="N":
pass
#AVAILABLE BOOKS
elif a==6:
for v in mycursor:
print(v)
elif a==7:
for x in mycursor:
print(x)
#EXIT
elif a==8:
break
21
#LOGIN ELSE PART
else:
print("""++++++++++++++++++++++
++INCORRECT PASSWORD++
++++++++++++++++++++++""")
else:
print("""++++++++++++++++++++
++INVALID USERNAME++
++++++++++++++++++++""")
else:
break
22
8.OUTPUT SCREEN
LOGIN
23
ADD NEW BOOK
24
DELETE BOOK
SEARCH BOOKS
25
STAFF DETAILS
SALES RECORD
27
AVAILABLE BOOKS
28
9.FUTURE ENHANCEMENT
whom we have issued the book and when will he return that.
It will eliminate the delays ni making the payments, where people use to
stand for a long time in the queue to pay and get their book.
searching.
It will also provide assurance that we have a proper record of the selling
of the books so that we can limit our books stock according to that.
Overall, it will reduce the cost and time of the shopkeeper who will take
29
10.CONCLUSION
11.BIBLIOGRAPHY
• https://www.google.com/
•https://www.pathwalla.com
30