Browse Source

Remove first_time_property_let_as_social_housing from optional (#1817)

CLDC-2105-merge-orgs-owning-org-dropdown v0.3.46
Jack 1 year ago committed by GitHub
parent
commit
1a8ef9a82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/lettings_log.rb
  2. 2
      spec/models/lettings_log_spec.rb

2
app/models/lettings_log.rb

@ -73,7 +73,7 @@ class LettingsLog < Log
}
AUTOGENERATED_FIELDS = %w[id status created_at updated_at discarded_at].freeze
OPTIONAL_FIELDS = %w[first_time_property_let_as_social_housing tenancycode propcode chcharge].freeze
OPTIONAL_FIELDS = %w[tenancycode propcode chcharge].freeze
RENT_TYPE_MAPPING_LABELS = { 1 => "Social Rent", 2 => "Affordable Rent", 3 => "Intermediate Rent" }.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

2
spec/models/lettings_log_spec.rb

@ -2246,7 +2246,6 @@ RSpec.describe LettingsLog do
it "returns optional fields" do
expect(lettings_log.optional_fields).to eq(%w[
first_time_property_let_as_social_housing
tenancycode
propcode
chcharge
@ -2260,7 +2259,6 @@ RSpec.describe LettingsLog do
it "returns optional fields" do
expect(lettings_log.optional_fields).to eq(%w[
first_time_property_let_as_social_housing
tenancycode
propcode
chcharge

Loading…
Cancel
Save