Dakshan 12th Final
Dakshan 12th Final
Class - XII
SUBMITTED BY
DAKSHAN.S
Under The Guidance Of
Mr.I.Mathivanan., M.Sc(IT)., M.Phil.,B.Ed.,
Date : _____________________
Principal Signature
Madurai - 625016.
KISHORE RAJ S
( )
ACKNOWLEDGEMENT
This project would not have been possible without the motivation and
guidance of our internal guide, Mr.I.Mathivanan., M.Sc(IT)., M.Phil.,B.Ed.,
PGT(CS)., SRI AUROBINDO MIRA UNIVERSAL SCHOOL., He was
backbone of our project and gave us encouragement and Moral support to finish
this project.
Finally, We thank all our friends for giving ideas to finish this project.
DAKSHAN. S
CONTENTS
2 PROPOSED SYSTEM
5 WORKING ENVIRONMENT
8 FLOW CHART
9 SOURCE CODE
10 SAMPLE OUTPUT
11 CONCLUSION
12 BIBLIOGRAPHY
INTRODUCTION
The sales management system is basically a database based project done with
help of python language. this project is very usefull for the shopkeepers to
keepa count on what project they have and how much they sold. this project is
multifield project ,so that it can be modified for various purposes.
PROPOSED SYSTEM
Today one cannot afford to rely on the fallible human beings of be really wants
to stand against today’s merciless competition where not to wise saying “to err
is human” no longer valid, it’s outdated to rationalize your mistake. So, to keep
pace with time, to bring about the best result without malfunctioning and greater
efficiency so to replace the unending heaps of flies with a much sophisticated
hard disk of the computer.
One has to use the data management software. Software has been an ascent
in atomization various organisations. 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.
The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and exposed the students how
programming skills helps in developing a good software.
SOFTWARE REQUIREMENTS:
Windows OS
Python
mysql connector modulle
WORKING ENVIRONMENT
MySQL is a fast, easy-to-use RDBMS being used for many small and big
businesses. MySQL is developed, marketed and supported by MySQL AB,
which is a Swedish company. MySQL is becoming so popular because of many
good reasons −
Modules
import mysql.connecter:
By importing this package, we are able to
establish the connection between SQL and
Python.
import datetime:
This package provides basic functions for
display date related values in the program.
import random:
This package has functionality to generate
random numbers and select numbers within a
range.
Admin Functionalities:
o Login module
o Manage Category: Add, update or delete
o Manage Item: Add, update or delete
User Functionalities:
o Registration module
o Login module
o Place Order module
o Shopping Cart module
o Manage profile
Functions
connect():
This function establishes connection between
Python and MySQL.
cursor():
It is a special control structure that facilitates
the row-by-row processing of records in the
result set.
The syntax is:
<cursor object>=<connection object>.cursor()
execute():
This function is use to execute the sql query
and retrieve records using python.
The syntax is:
<cursor object>.execute(<sql query string>)
fetchall():
This function will return all the rows from the
result set in the form of a tuple containing the
records.
commit():
This function provides changes in the database physically.
SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)
for i in range(0,int(len(peee)))
print(peee[i] )
it=0
bill=0
while 5>1:
print("=============================================
==============================================")
print("1. CUSTOMER")
print("2. ADMIN")
print("3.EXIT")
loggin=int(input('enter the choice:'))
if loggin==1:
while 3>1:
print("===============================
=========================================================
===")
b=input('product number: ')
c1.execute('select product_name,cost_per_product from stock where
product_no =' + b)
data= c1.fetchall()
data1=list(data[0])
print('product name :', data1[0])
print('cost of the product :', data1[1] )
appr= input('do you want to buy it (Y/N) :')
if appr == 'y' or appr =='Y' :
c1.execute("update stock set stock = stock-1 where product_no= " + b )
c1.execute("update stock set purchased = purchased+1 where product_no=" + b
)
bill+=int(data1[1])
it+=1
print("bought successfully!!!!")
opn = input(" Do you want buy any other thing (Y/N) : ")
if opn == 'y' or opn == 'Y':
continue
elif opn=='n' or opn=='N':
break
elif appr =='n' or appr =='N':
opn = input(" Do you want buy any other thing (Y/N) : ")
if opn == 'y' or opn == 'Y':
continue
elif opn == 'n' or opn =='N':
just=input('MODE OF PAYMENT (Cash/Card):'
print(' BILL')
print(''' GAME POINT
NUMBER OF ITEMS PURCHASED:''',
print('''GRAND TOTAL AMOUNT:''',bill)
print('''MODE OF PAYMENT:''',just)
print('''*******THANK YOU*******
*******PLEASE VIST AGAIN*******''')
break
else:
print('####invalid command####')
break
conn.commit()
elif loggin==2:
print("1. veiw stock")
print("2. add stock")
print("3. Adding a new product")
ch=int(input("Enter your choice :"))
if ch==1:
a=input('Enter the product number :')
c1.execute("select * from stock where product_no="+a)
dt=c1.fetchall()
dt1=list(dt[0])
print("product name :",dt1[1])
print("cost per product:",dt1[2])
print("stock available:",dt1[3])
print(" Number items purchased :",dt1[4])
elif ch==2:
prdno=input("Enter the product number of the product for which the
stock is going to be updated:")
upd_value=int(input("enter the number of new stocks came:"))
c1.execute("update stock set stock=stock+" + str(upd_value) + " where
product_no="+prdno)
conn.commit()
elif ch==3:
pno1=input('Enter the product number of new product:')
pna=input('Enter the product name of the new product:')
cst=input('Enter the cost of the product:')
stock12=input('Enter the number of stocks of the new product arrived:')
pch='0'
c1.execute("insert into stock values(" +
pno1 +','+'"'+pna+'"'+','+cst+','+stock12+','+pch+')')
print("Added sucessfully!!!!!!!")
conn.commit()
else:
print('####INVALID OPTION ####')
elif loggin== 3:
print("...QUITING... ")
break
else:
print("###INVALID OPTION####")
else:
print('please enter the right option')
OUTPUT
MAIN WINDOW
LOGIN WINDOW
CUSTOMER WINDOW
ADMIN WINDOW
REGISTER WINDOW
The Sales Management System stores all the information of the parts of
automobiles in the inventory. The inventory can be used to add, update and
delete parts from the inventory.
It also maintains their day to day transactions of stocks manually. The inventory
consists of multiple types of products. Inventory makes it easy to keep a track of
all parts, to check the stock, quantity and price of products. Based on the part id
or part name, specific parts can be fetched from the inventory.
The Sales Management System generates invoices of all the customers who did
repair and service at the service station. It keeps track of the invoice of all the
customers. The invoice will be generated on the basis of parts required for
servicing the vehicle of a customer. Total bill amount will be calculated based
on the quantity and parts needed for repair and servicing.
Our software takes care of all the above functionalities. Along with it, it keeps a
log of stock in the inventory as well as keeps track of purchases made.
The software is provided with the master entries to enter a new part in the
inventory , update and delete the same. It also allows us to add a new customer,
update and delete the record from the database.
BIBLIOGRAPHY
Website:
(Code With Harry): https://www.youtube.com/playlist?
list=PLu0W_9lII9agwh1XjRt242xIpHhPT2llg
(Zoho):
https://www.zoho.com/crm/sales-management-system.html
*************************************************************