module CommLogistics::Modules::WarningUtil
  WARNING_ADEQUATE_QUANTITY = 1
  WARNING_UBD_LIMIT = 2
  def is_retry_included?(error_num)
    if @additional and @additional["retry"] and @additional["retry"].include?(error_num.to_s)
      Rails.logger.info('RETRY and Warning is Canceled. error_num:'+error_num.to_s)
      return true
    end
    return false
  end
  
  def make_retry_include(error_num)
    @additional ||= {}
    @additional["retry"] ||= ""
    @additional["retry"] << error_num.to_s
  end
end