The free sms allowances are changing for the financial year starting

April 1 2021.

In this PR there is a command to set annual_billing for all active
services with the the new defaults.

The new method `set_default_free_allowance_for_service` will also be
called in a PR to follow that will set a services free allowance to the
default if the organisation for the service is changed.
This commit is contained in:
Rebecca Law
2021-03-25 08:10:22 +00:00
parent 47c2ced614
commit 7da5abc17b
4 changed files with 178 additions and 31 deletions

View File

@@ -199,6 +199,14 @@ def create_service_with_defined_sms_sender(
return service
def create_service_with_organisation(org_type):
service = create_service(service_name=f'{org_type} service')
org = create_organisation(name=f'{org_type} org', organisation_type=org_type)
dao_add_service_to_organisation(service=service, organisation_id=org.id)
return service
def create_template(
service,
template_type=SMS_TYPE,