From ec03720a05cd101a6a2f3e3bd9d79c19a8d2627f Mon Sep 17 00:00:00 2001 From: Kat Date: Wed, 1 Dec 2021 15:42:46 +0000 Subject: [PATCH] Change misssed org_type --- app/models/organisation.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/organisation.rb b/app/models/organisation.rb index 14649f8d7..21b63119f 100644 --- a/app/models/organisation.rb +++ b/app/models/organisation.rb @@ -10,6 +10,7 @@ class Organisation < ApplicationRecord CaseLog.for_organisation(self) end + def completed_case_logs case_logs.completed end @@ -27,7 +28,7 @@ class Organisation < ApplicationRecord name: name, address: address_string, telephone_number: phone, - type: org_type, + type: providertype, local_authorities_operated_in: local_authorities, holds_own_stock: holds_own_stock, other_stock_owners: other_stock_owners,