forked from DoyelG/Factu-D2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
36 lines (25 loc) · 751 Bytes
/
main.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
import sys
sys.path.append("./src")
from invoicing_service import InvoicingService
def display_menu():
print("Please choose the invoicing method:")
print("1. Anonymous invoices")
print("2. Named invoices")
print("3. Exit")
choice = input("\nEnter the number of your choice: ")
return choice
def main():
while True:
user_choice = display_menu()
if user_choice == "1":
InvoicingService.anonymous_invoicing()
break
elif user_choice == "2":
InvoicingService.named_invoicing()
break
elif user_choice == "3":
print("Exiting...")
break
else:
print("Invalid choice, please choose again.")
main()