21 lines
551 B
Python
21 lines
551 B
Python
import sendEmail
|
|
import InvoiceDatabase
|
|
|
|
running = True
|
|
|
|
while running is True:
|
|
print('1. load new excel file\n2. Send Test emails\n3. Send Invoices\n4. Quit')
|
|
option = int(input())
|
|
if option == 1:
|
|
print('Enter invoice number')
|
|
invoiceNumber = str(input())
|
|
InvoiceDatabase.load_sheet(invoiceNumber)
|
|
elif option == 2:
|
|
sendEmail.send_email(True, 'ALL')
|
|
elif option == 3:
|
|
sendEmail.send_email(False, 'ALL')
|
|
elif option == 4:
|
|
running = False
|
|
else:
|
|
print('not an option')
|