6 Commits

Author SHA1 Message Date
Dan Dembinski
b83e181c47 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 2021-05-28 16:26:05 -04:00
Dan Dembinski
909b12ff6c Added bat file to source correct venv and run script. Reorganized db connection stuff and added check to create db/tables if they don't exist. Uncommented email section and set mark_sent method to only be called if not testing. 2021-04-08 10:58:01 -04:00
Dan Dembinski
82ad72007c Commented out sendmail parts for testing. Added SentInvoice table that tracks when invoices were sent. Added InvoiceID and InvoiceSent columns to Invoice table. Now tracks which invoices haven't been sent and only sends those. Once hte invoice has been sent it marks it has having been sent in the database and adds the date to the SentInvoice table. Started adding parts to allow xlsx filent not to be hardcoded. Updated TableSetup using the PyCharm autogeneric SQL thing. 2021-04-01 15:52:47 -04:00
Dan Dembinski
56722752ac Added shipping information. Pulls list of all documentIDs per Order. Looks up individual DocumentID information. Added Address Block and Item Detail Block to Invoice HTML. Added BCC and CC testing addresses. 2021-03-20 00:25:58 -04:00
Dan Dembinski
5720ac4dbb Added some comments 2021-03-19 02:28:08 -04:00
Dan Dembinski
12c4722fe9 Initial commit. Loads XLSX file from accounting into sqlite database. Sends HTML email. Started adding variable parts to body pulled from database. 2021-03-19 02:22:53 -04:00