Merge branch 'master' of ssh://git.autonomic.zone:2222/autonomic-cooperative/goodnightout_composer

This commit is contained in:
naomi 2021-09-13 17:15:17 +01:00
commit f08be3a7d3

View File

@ -1,7 +1,7 @@
# First
- Log in as a user with the role "GNO Standard User".
# Client & training & project
# Client & training
- Billing fields are not there at first but there is a button to add them and when you click it is adds them.
- Save the client without filling in any billing fields, then edit it - the fields should be gone and the button shoud be there
- Add one or more billing fields, save and edit - all the billing fields should show, and not the button.
@ -14,10 +14,7 @@
- Add another trainer with "None" rate and one with Standard
- Save it, the trainers and rates should show , then when you edit it again the input box should be gone for the none one and disabled for the standard
- The training immediately shows up in the training list for that client
- It also appears in "All trainings", at the top
- Add a project and add multiple fees
- Save it and all the fees should be displayed
- The project should appear in the project list for the client and also in All Projects
- It also appears in "All trainings"
# Umbrella client
@ -66,15 +63,6 @@
* The subtypes dropdown should be populated according to the existing value of the types dropdown. E.g. save a client as "licensed premises" type and reopen; the subtypes should be a list including "Pub or Bar"
* The status dropdown should be populated according to the existing value of the substatuses dropdown. E.g. save a client as substatus "One-off Training" and reopen; the status should be set to "Confirmed" and that should be the only option in the status dropdown.
# Automatic client status
## Tests for presave hook in goodnightout_opencase.module
* Setup a client with status "Lead" and give it multiple trainings - leave the training status as N/A.
* Set some but not all of the trainings to status "post training materials sent"
* The status of the client should not change
* Set all the remaining trainings to status "post training materials sent"
* This should automatically set the client status to "Accredited" and their substatus to "Recently Accredited"
# Trainings linked to projects or clients
* Add a training from a client screen
@ -95,16 +83,63 @@
* Should not happen when client is saved without changing status
* Should not happen when status is changed to something else
# Automatic client status & accreditation date
## Tests for presave hook in goodnightout_opencase.module
* Setup a client with status "Lead" and give it multiple trainings - leave the training status as N/A.
* Set some but not all of the trainings to status "post training materials sent"
* The status of the client should not change
* Set all the remaining trainings to status "post training materials sent"
* This should automatically set the client status to "Accredited", their substatus to "Recently Accredited", and their Accreditation Date to today.
## Tests for cron hook in goodnightout_opencase.module
* Change the accreditation date to one that's more than 3 months in the past
* Run cron
* The status should change to 3-month follow-up due and an email alert should be sen
* Change the status to "3-month follow-up sent" and change the accreditation date to one that's more than 6 months in the past
* Run cron
* The status should change to 6-month follow-up due and an email alert should be sent
# Number of participants
* Create a debrief for a training and fill in "Number of participants".
* The number should appear on the training when you view it.
* Edit the debreief - it should change the training too
* Create another - so should that
* Edit the debrief to set a different number - it should overwrite the number on the training
* Create another debrief - should also overwrite
* Delete a debrief - number on training should not change
# Total fees on a project
* Create a project and add some fees
* When you view the project the total fee should be displayed
* When you view the project the fees should be listed and also total fee should be displayed
* Edit it and change a fee, delete a fee, add a fee
* The total should update
* The total should appear in the list of projects
* The project along with its total fee should appear in the All Projects list
## Unpublishing and deleting entities
### As a GNO Standard User
* There should be no delete tab on any entities (although you can delete links between clients)
* All these entities should a checkbox for whether they are published:
* Client
* Umbrella Client
* Training
* Project
* Train the trainer event
* Partner Organistion
* debrief
* Evaluation
* Untick and save - you should get Access Denied and the entity should have disappeared from the "All" lists and also from the following contextual lists:
* List of trainings on client & umbrella client screens
* List of projects on client & umbrella client screens screen
* List of clients on umbrella client screens
* List of debriefs and evaluations on trainings screen
* Unpublished entities should not show up in any autocomplete fields. i.e.:
* Unpublished trainers should not come up as an option when filling in the trainer field on a training
* Unpublished clients should not come up as an option when filling in the client field of a training or a project, or when adding a linked client to another client
* Unpublished projects should not come up as an option when filling in the project field of a training
* Unpublished umbrella clients should not come up as an option when filling in the umbrella client field of a client
### As a GNO Admin user
* Unpublished entities should appear in all the lists, but in grey (and should not show up in autocomplete fields)
* You should be able to delete all entities
* When you delete a training it should warn you it's going to delete the debriefs and evaulations as well.