components/benefit_markets/app/models/benefit_markets/products/product.rb
# Add premium table, covering extended time period, to existing product.  Used for products that
# have periodic rate changes, such as ACA SHOP products that are updated quarterly.
Add premium table, covering extended time period, to existing product.  Used for products that
have periodic rate changes, such as ACA SHOP products that are updated quarterly.
Add premium table covering extended time period to existing product . Used for products that have periodic rate changes such as ACA SHOP products that are updated quarterly .
def add_premium_table(new_premium_table)
        raise InvalidEffectivePeriodError unless is_valid_premium_table_effective_period?(new_premium_table)
        if premium_table_effective_on(new_premium_table.effective_period.min).present? ||
           premium_table_effective_on(new_premium_table.effective_period.max).present?
          raise DuplicatePremiumTableError, "effective_period may not overlap existing premium_table"
        else
          premium_tables << new_premium_table
        end
        self
      end
def add_premium_table ( new_premium_table ) raise InvalidEffectivePeriodError unless is_valid_premium_table_effective_period? ( new_premium_table ) if premium_table_effective_on ( new_premium_table . effective_period . min ) . present? || premium_table_effective_on ( new_premium_table . effective_period . max ) . present? raise DuplicatePremiumTableError , "effective_period may not overlap existing premium_table" else premium_tables << new_premium_table end self end
Add premium table, covering extended time period, to existing product.
Add premium table covering extended time period to existing product .
new_premium_table