You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create Statement of Work after approving sponsorship + Send PDF document (python#1702)
* Model statement of work's information
* Auto increment revision no
* Automatically populate sponsor info and contact fields
* Refactor SponsorBenefit creation
* List benefits info
* Format legal clauses list
* Prevents from rejecting or accepting reviewd applications
* Display detailed sponsor's address information
* Fix f-string and change postal code order
* Implement use case to approve sponsorship
* Refactor use cases
* Model admin for statements of work
* Add link from approved sponsorship to draft SOW
* Replace sponsorships preview by SoW preview
* Black =]
* Add button to preview SoW from change form
* Move sponsor contact to sponsor info and display primary contact's email
* Approve method requires start/end date
* Accept use case now updates the sponsorship with more data
* Display form when reviewing sponsorship application
* Prevent sponsorship from being changed after approval/rejection
* Black =S
* Join markdowns so footnotes can work
* Remove unecessary trailing spaces
* Fix issue after rebase
* Respect db ordering to avoid tests inconsistencies
* Move admin views to a specific file
* Install django easy pdf
* Display SoW preview as PDF
* Move django-easy-pdf code to a specific module
* Refactor model's contants
* Create auxiliar function to render PDF document as bytes
* Add status control to Statement of Work model
* Rename exception
* Create function to save the final document version
* Add vscode dir to gitignore
* UC to send SoW
* Update notifications to use SoW instead of sponsorship obj
* Impleent view to send statement of work to users
* Refactor to use EmailMessage instead of send_mail shortcut
* Attach SoW PDF to emails
* Add button to send SoW
* Display an iframe with the PDF file before sending the document
* Shouldn't edit document fields if not a draft version
* Add administrative flag to sponsor's contact
* Enable rollback sponsorship to edit
* Admin view to rollback to edit
* Add button in sponsorship's change form
* Move rollback view to views_admin to respect internals structure
* Manage SoW before rolling back an application
* Minor lint warnings
* Add document summary content
* Style page to closer to the reference
* Add contract bullet items
* List benefits and legal clauses
* Do not display legal clauses section if nothing to list
* Create merge migration
* Remove element that was useful only for development
* Fix pdf tests
* Return 0 if sponsorship_fee is none None to avoid TypeError from num2words
* Replace description text
* Fix typo and add link
* Rename StatementOfWork model
* Update admin links
* Rename sow variables to contract
* Rename statement_of_work references
* Rename last statement references
* Move num2words requirement to base-requirements
* Create commmand to work as initial data migration
* Remove migration that doesn't work
* add missing configurations from python#1735
* Add logger to approve sponsorship use case
The logger is responsible to add a new entry in Django's LogEntry
to document the approval.
* Remove expired todos
* Add missing migration to replace SoW by Contract
* Legal clauses can be empty
* Also log actitivy when final contract is sent
* fix bad merge
* Store original program name on SponsorBenefit objects
* Benefits must always have a program
* Prevent from sending contract file to sponsor
* Implement logic to finalize contract and, thus, enable sponsorship benefits
* Implement operation to nullify a contract
Co-authored-by: Ernest W. Durbin III <[email protected]>
Co-authored-by: Ee Durbin <[email protected]>
0 commit comments