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