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

This commit is contained in:
Naomi 2021-09-11 10:05:27 +02:00
commit 572d57b775

View File

@ -12,20 +12,39 @@
* If you change the client type, the options in the subtype dropdown should populate accordingly (e.g. "Licensed Premises" -> a list including "Pub or Bar", or "Nightlife Organisation" -> a list including "Festival" and "Staffing Agency") * If you change the client type, the options in the subtype dropdown should populate accordingly (e.g. "Licensed Premises" -> a list including "Pub or Bar", or "Nightlife Organisation" -> a list including "Festival" and "Staffing Agency")
* The "-None-" option should always remain present in the subtypes dropdown. * The "-None-" option should always remain present in the subtypes dropdown.
# Linked clients
* Client screen should have a button to add a linked client
* When you click it it should take you to a screen saying "Add linked client" with an autocomplete box
* Add One
* You should then see the linked client in the list on the original client's screen
* Clink on the linked client's name in the list and you should see that the original client is in the list of linked clients for it (i.e. it is a symmetrical relation)
* The delete link in the list should work, i.e. remove the linked client from the list
# Editing a client using the GUI # Editing a client using the GUI
## Tests for JS code in js/edit_client.js ## Tests for JS code in js/edit_client.js
* 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 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 it should not be possible to change it. * 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 # Automatic client status
## Tests for presave hook in goodnightout_opencase.module ## Tests for presave hook in goodnightout_opencase.module
* Setup a client with status "Lead" and give it multiple trainings * 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" * Set some but not all of the trainings to status "post training materials sent"
* The status of the client should not change * The status of the client should not change
* Set all the remaining trainings to status "post training materials sent" * 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" * 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
* It should have the client filled in by default, and a box for the project
* Fill in a project and save
* On the training screen there should be a link to the project
* Click it to open the project, then add another training
* The project field should default to the project and there should be a box for the client
* Add a client and save
* There should be a link to the client on the project screen
* Click it and the project should be listed there
# Email notification # Email notification
## Tests for mail hook and post-save hook in goodnightout_opencase.module ## Tests for mail hook and post-save hook in goodnightout_opencase.module