Automate TransferWise Bulk Payment CSV Generation
This PR adds an automated job that generates a TransferWise Bulk Payment CSV every month for all unpaid invoices hitherto, and sends that CSV to a pre-set account.
Testing Instructions:
- If necessary, create an account with username
opencraft
(or whatever you setTRANSFERWISE_BULK_PAYMENT_SENDER
to), with an email you have access to. - If necessary, create 1 or 2 provider accounts, and as usual, all of the scaffolding, like hourly rates, invoice templates, and bank accounts.
- If necessary, run the tasks in
accounting.invoice.tasks
, so that invoices are generated for the providers, and are populated with line items from JIRA. - Go ahead and run the task introduced here, in
accounting.transferwise.tasks
. - Ensure that the client receives an email with the CSV attached, and that the CSV contains the correct rows and information. Also check that it is uploaded in the appropriate GDrive folder, where the invoices are.