<% begin %>
<%= render "layouts/header" %>
<%= render "layouts/sidebar" %>
Product
<%= render "layouts/breadcrumbs" %>
<% if flash[:error] %>
× <%= flash[:error] %>
<% end %> <% if flash[:notice] %>
× <%= flash[:notice] %>
<% end %>
<%= form_tag({action: 'index'}, multipart: :true, id: :myForms1) do %>
<% end %>
<% if @search_prod_type.present? && (@search_prod_type.to_s == 'DMC' || @search_prod_type.to_s == 'SMC') %> <%end%> <% i = 1 %> <% if @product_list.present? && @product_list.any? %> <% @product_list.each do |product| %> <% if product.Itm_type == 'DMC' || product.Itm_type == 'SMC'%> <%end%> <% i += 1 %> <% end %> <% else %> <% end %>
S.No TypeHSN CodeCategory Product Code Product Desc Product Material Product Color Insert Combination Insert Material Action
<%= i %> <%= product.Itm_type %><%= product.Itm_hsncode %><%= product.Itm_Ctg %> <%= product.Itm_Code %> <%= product.Itm_desc %> <%= product.Itm_Matrial %> <%= product.Itm_Color %> <%= product.Itm_InsertComb %> <%= product.Itm_InsertMat %>
No Records Found
<% message = "" rescue ActiveRecord::RecordNotFound => e # Handle the specific exception when the record is not found message = "Record not found #{e.message}"##{e.message} isFlags = false rescue ActiveRecord::StatementInvalid => e # Handle SQL syntax errors or invalid queries message = "Unknown error #{e.message} " ##{e.message} isFlags = false rescue StandardError => e # Handle any other errors message = "An error occurred #{e.message}" # isFlags = false end %> <%=message%>