Browse Source

Rubocop

pull/745/head
Stéphane Meny 3 years ago
parent
commit
a7097ed967
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 8
      app/services/imports/case_logs_import_service.rb

8
app/services/imports/case_logs_import_service.rb

@ -18,7 +18,7 @@ module Imports
FORM_NAME_INDEX = {
start_year: 0,
rent_type: 2,
needs_type: 3
needs_type: 3,
}.freeze
GN_SH = {
@ -617,9 +617,9 @@ module Imports
def set_partial_charges_to_zero(attributes)
unless attributes["brent"].nil? &&
attributes["scharge"].nil? &&
attributes["pscharge"].nil? &&
attributes["supcharg"].nil?
attributes["scharge"].nil? &&
attributes["pscharge"].nil? &&
attributes["supcharg"].nil?
attributes["brent"] ||= BigDecimal("0.0")
attributes["scharge"] ||= BigDecimal("0.0")
attributes["pscharge"] ||= BigDecimal("0.0")

Loading…
Cancel
Save