Professional Documents
Culture Documents
Sales Management System
Sales Management System
Sales Management System
for i in range(0,int(len(peee))):
1|Page
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("==============================================
=============================================")
data1=list(data[0])
data1[0])
appr=
print('cost of the product :', data1[1] )
if
input('do you want to buy it (Y/N) :')
2|Page
bill+=int(data1[1])
it+=1
3|Page
print("bought successfully!!!!")
continue
break
continue
print(' BILL')
print('''MODE OF PAYMENT:''',just)
print('''*******THANK YOU*******
*******PLEASE VIST AGAIN*******''')
break
else:
print('####invalid command####')
4|Page
break
conn.commit()
elif loggin==2:
if ch==1:
dt=c1.fetchall()
dt1=list(dt[0])
print("stock available:",dt1[3])
elif ch==2:
5|Page
c1.execute("update stock set stock=stock+" +
str(upd_value) + " where product_no="+prdno)
conn.commit()
elif ch==3:
pch='0'
print("Added sucessfully!!!!!!!")
conn.commit()
else:
elif loggin== 3:
print("...QUITING... ")
break
else:
print("###INVALID OPTION####")
6|Page
FILE NAME: SALES MANAGEMENT SYSTEM
print("==============================================
==============================")
if choice == 1:
us=input('USERNAME:')
ps=input('PASSWORD:')
c1.execute("select * from user where username =
'{}' and passwd = '{}'".format(us , ps))
data = c1.fetchall()
if any(data) :
import main
else:
print('''..SORRY..
WRONG.......USERNAME OR PASSWORD''')
elif choice == 2:
7|Page
print("==============================================
=============================================")
li=input('ENTER THE NEW USER ID:')
while 8>1:
conn.commit()
break
elif choice ==3:
print(".......................LOGGING...........OUT
................")
break
else:
print('please enter the right option')
8|Page
OUTPUT
MAIN WINDOW
LOGIN WINDOW
9|Page
CUSTOMER WINDOW
ADMIN WINDOW
10 | P a g e
REGISTER WINDOW
11 | P a g e
EXIITING WINDOW
12 | P a g e
13 | P a g e