|
|
|
@ -145,7 +145,7 @@ class LettingsLog < Log
|
|
|
|
|
scope :filter_by_managing_organisation_text_search, ->(param, _user) { where(managing_organisation: Organisation.search_by(param)) } |
|
|
|
|
|
|
|
|
|
AUTOGENERATED_FIELDS = %w[id status created_at updated_at discarded_at].freeze |
|
|
|
|
OPTIONAL_FIELDS = %w[tenancycode propcode chcharge].freeze |
|
|
|
|
OPTIONAL_FIELDS = %w[tenancycode propcode chcharge address_search].freeze |
|
|
|
|
RENT_TYPE_MAPPING_LABELS = { 1 => "Social Rent", 2 => "Affordable Rent", 3 => "Intermediate Rent", 4 => "Specified accommodation" }.freeze |
|
|
|
|
HAS_BENEFITS_OPTIONS = [1, 6, 8, 7].freeze |
|
|
|
|
NUM_OF_WEEKS_FROM_PERIOD = { 2 => 26, 3 => 13, 4 => 12, 5 => 50, 6 => 49, 7 => 48, 8 => 47, 9 => 46, 1 => 52, 10 => 53 }.freeze |
|
|
|
|