-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenulib.py
73 lines (70 loc) · 2.68 KB
/
Menulib.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
#PYTHN MODULE: MENULIB
import Purchases
import Sales
import Inventory
def MenuPurchases():
while True:
Purchases.clrscreen()
print("\t\t\t Purchase Record Management\n")
print("=================================================================")
print("1. Add Purchase Record")
print("2. Search Purchase Record")
print("3. Delete Purchase Record")
print("4. Update Purchase Record")
print("5. Return to Main Menu")
print("=================================================================")
choice = int(input("Enter Choice between 1 to 5 -------> : "))
if choice == 1:
Purchases.insertData()
elif choice == 2:
Purchases.searchData()
elif choice == 3:
Purchases.deleteData()
elif choice == 4:
Purchases.updateData()
elif choice == 5:
return
else:
print("Wrong Choice.....Enter Your Choice again")
x = input("Enter any key to continue")
def MenuSales():
while True:
Purchases.clrscreen()
print("\t\t\t Sales Record Management\n")
print("=================================================================")
print("1. Add Sales Record")
print("2. Search Sales Record")
print("3. Delete Sales Record")
print("4. Update Sales Record")
print("5. Return to Main Menu")
print("=================================================================")
choice = int(input("Enter Choice between 1 to 5 ------> : "))
if choice == 1:
Sales.insertData()
elif choice == 2:
Sales.searchData()
elif choice == 3:
Sales.deleteData()
elif choice == 4:
Sales.updateData()
elif choice == 5:
return
else:
print("Wrong Choice.....Enter Your Choice again")
x = input("Enter any key to continue")
def MenuInventory():
while True:
Purchases.clrscreen()
print("\t\t\t Inventory Record Management\n")
print("=================================================================")
print("1. Search from Inventory")
print("2. Return to Main Menu")
print("=================================================================")
choice = int(input("Enter Choice between 1 to 3 ------> : "))
if choice == 1:
Inventory.searchData()
elif choice == 2:
return
else:
print("Wrong Choice.....Enter Your Choice again")
x = input("Enter any key to continue")