From 08325343cbf94c49a137999cab82e2f0ed1a99c1 Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 2 Dec 2021 16:55:35 +0000 Subject: [PATCH] move out RENT_TYPE_MAPPING to constants file --- app/models/constants/case_log.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/models/constants/case_log.rb b/app/models/constants/case_log.rb index d742f36d4..0396e7815 100644 --- a/app/models/constants/case_log.rb +++ b/app/models/constants/case_log.rb @@ -714,4 +714,13 @@ module Constants::CaseLog "Intermediate Rent General needs LA" => 11, "Intermediate Rent Supported housing LA" => 12, }.freeze + + RENT_TYPE_MAPPING = { + "Social rent" => "Social Rent", + "Affordable rent" => "Affordable Rent", + "London Affordable rent" => "Affordable Rent", + "Rent to buy" => "Intermediate Rent", + "London living rent" => "Intermediate Rent", + "Other intermediate rent product" => "Intermediate Rent", + }.freeze end