Browse Source

CLDC-3924: Lettings household rent charge Qs with new rent period not shown (#2991)

* Add new rent period that should show rent charge questions

* Add new rent period to num weeks constant

* Lint
pull/2997/head v0.5.2
Manny Dinssa 1 week ago committed by GitHub
parent
commit
a5c54383f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      app/models/lettings_log.rb

4
app/models/lettings_log.rb

@ -148,7 +148,7 @@ class LettingsLog < Log
OPTIONAL_FIELDS = %w[tenancycode propcode chcharge].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
NUM_OF_WEEKS_FROM_PERIOD = { 2 => 26, 3 => 13, 4 => 12, 5 => 50, 6 => 49, 7 => 48, 8 => 47, 9 => 46, 11 => 51, 1 => 52, 10 => 53 }.freeze
SUFFIX_FROM_PERIOD = { 2 => "every 2 weeks", 3 => "every 4 weeks", 4 => "every month" }.freeze
DUPLICATE_LOG_ATTRIBUTES = %w[owning_organisation_id tenancycode startdate age1_known age1 sex1 ecstat1 tcharge household_charge chcharge].freeze
RENT_TYPE = {
@ -626,7 +626,7 @@ class LettingsLog < Log
end
def rent_and_charges_paid_weekly?
[1, 5, 6, 7, 8, 9, 10].include? period
[1, 5, 6, 7, 8, 9, 10, 11].include? period
end
def rent_and_charges_paid_every_4_weeks?

Loading…
Cancel
Save