lib/onix/apa_product.rb
def proprietry_discount_code_for_rrp
      price    = price_get(2)
      return nil if price.nil?

      discount = price.discounts_coded.find { |disc| disc.discount_code_type == 2 }
      discount.andand.discount_code
    end
def proprietry_discount_code_for_rrp
      price    = price_get(2)
      return nil if price.nil?

      discount = price.discounts_coded.find { |disc| disc.discount_code_type == 2 }
      discount.andand.discount_code
    end
def proprietry_discount_code_for_rrp price = price_get ( 2 ) return nil if price . nil? discount = price . discounts_coded . find { | disc | disc . discount_code_type == 2 } discount . andand . discount_code end
retrieve the discount code that describes the rrp in this file
retrieve the discount code that describes the rrp in this file