Fix bat file argument. Adding Company Name to address block. Add option to "un-send" an email. This marks the InvoiceSent column as False. You can then re-test and re-send the mail. This doesn't remove the original email history from the SentInvoice table, and resending the email will add a new record to the table. Orders can be un-sent via the Invoice Number or Order Number

This commit is contained in:
Dan Dembinski
2021-05-28 16:26:05 -04:00
parent 64d913572c
commit b83e181c47
4 changed files with 23 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ except:
fileName = ''
while running is True:
print('1. load new excel file\n2. Send Test emails\n3. Send Invoices\n4. Quit')
print('1. load new excel file\n2. Send Test emails\n3. Send Invoices\n4. Un-send Invoce\n5. Quit')
option = int(input())
if option == 1:
print('Enter invoice number')
@@ -21,6 +21,12 @@ while running is True:
elif option == 3:
sendEmail.send_email(False, 'ALL')
elif option == 4:
print('1. Invoice Number\n2. Order Number')
option = int(input())
print('Enter Number: ')
number = str(input())
InvoiceDatabase.unsend(option, number)
elif option == 5:
running = False
else:
print('not an option')