def merch_year_from_date(date)
      date_end_of_year = end_of_year(date.year)
      date_start_of_year = start_of_year(date.year) 
      if date < date_start_of_year
        date.year - 1 
      else
        date.year
      end
    end
def merch_year_from_date(date)
      date_end_of_year = end_of_year(date.year)
      date_start_of_year = start_of_year(date.year) 
      if date < date_start_of_year
        date.year - 1 
      else
        date.year
      end
    end
Given any julian date it will return what retail year it belongs to

 @param date [Date] the julian date to convert to its Retail Year
 @return [Integer] the retail year that the julian date falls into