-
Notifications
You must be signed in to change notification settings - Fork 0
/
upload stock.py
89 lines (71 loc) · 1.99 KB
/
upload stock.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
from python_project_5 import *
print("Welcome to our Stores")
print("---------------------------")
print("* Upload details *")
print("---------------------------")
def showitem():
a = list(Fdstores)
for x in a:
print(x)
print("-----------------------------")
w = input("Enter the items : ")
b = Fdstores[w].keys()
for b in Fdstores[w]:
print(b)
def stockitem():
x = {"product": [], "items": [], "quantity": []}
c = list(x.values())
product = c[0]
items = c[1]
quantity = c[2]
a = list(Fdstores)
for x in a:
print(x)
print("---------------------------------------------")
b = input("Show the menu items : ")
# print(list(Fdstores[b]))
for y in Fdstores[b]:
print(y)
print("----------------------------------------------")
n = input("availabe item : ")
print(Fdstores[b][n], " : Stock available")
def addstockitems():
a = list(Fdstores)
for x in a:
print(x)
print("-----------------------------")
w = input("Enter the items : ")
b = Fdstores[w].keys()
for b in Fdstores[w]:
print(b)
print("------------------------------")
k = list(Fdstores[w])
print(k)
d = input("enter the item to add : ")
print(d)
z=k.append(d)
print(z)
print(k)
for j in k:
print(j)
print("------------------------------")
while True:
try:
print("1.Show items\n2.Stockitems\n3.addstockitems\n4.Exit")
print("-------------------")
b = int(input("enter the choice : "))
except ValueError:
continue
else:
if b == 1:
showitem()
print("-------------------")
elif b == 2:
stockitem()
print("---------------------")
elif b == 3:
addstockitems()
else:
print("---Well done---")
quit()
Fdstores.clear()