Browse Source

Rubocop

pull/653/head
baarkerlounger 3 years ago
parent
commit
310e5525fb
  1. 2
      app/models/case_log.rb
  2. 2
      app/models/validations/financial_validations.rb

2
app/models/case_log.rb

@ -528,7 +528,7 @@ private
if rsnvac.present?
self.newprop = has_first_let_vacancy_reason? ? 1 : 2
end
self.managing_organisation_id = owning_organisation_id
self.managing_organisation_id = owning_organisation_id
self.incref = 1 if net_income_refused?
self.renttype = RENT_TYPE_MAPPING[rent_type]
self.lettype = get_lettype

2
app/models/validations/financial_validations.rb

@ -131,7 +131,7 @@ private
def validate_charges(record)
return unless record.owning_organisation
provider_type = record.owning_organisation.provider_type_before_type_cast
%i[scharge pscharge supcharg].each do |charge|
maximum = CHARGE_MAXIMUMS.dig(charge, PROVIDER_TYPE[provider_type], NEEDSTYPE_VALUES[record.needstype])

Loading…
Cancel
Save