Files
notifications-api/app
Rebecca Law 69e5ddae4f When a service is associated with a organisation set the free allowance to
the default free allowance for the organisation type.

The update/insert for the default free allowance is done in a separate
transaction. Updates to services need to happen in a transaction to
trigger the insert into the ServicesHistory table. For that reason the
call to set_default_free_allowance_for_service is done after the service
is updated.
I've added a try/except around the set_default_free_allowance_for_service call to ensure we still get the update to the service but get an exception log if the update to annual_billing fails. I believe it's important to preserve the update to the service in the unlikely event that the annual_billing upsert fails.
2021-04-14 07:03:57 +01:00
..
2021-03-15 17:18:20 +00:00
2021-04-08 12:22:18 +01:00
2021-03-12 11:45:45 +00:00
2021-03-12 11:45:45 +00:00
2021-03-12 11:45:45 +00:00
2021-03-30 12:46:28 +01:00
2021-03-26 18:31:53 +00:00
2021-03-12 11:45:45 +00:00
2021-03-12 11:45:45 +00:00
2021-03-12 11:45:45 +00:00
2021-03-12 11:45:45 +00:00