<% begin %>
<%= render "layouts/header" %>
<%= render "layouts/sidebar" %>
Generate List
<%= render "layouts/breadcrumbs" %>
<% if flash[:error] %>
× <%= flash[:error] %>
<% end %> <% if flash[:notice] %>
× <%= flash[:notice] %>
<% end %>

Temporary Records

<% i = 1 %> <% if @temp_list.present? && @temp_list.any? %> <% @temp_list.each do |temp| %> <% i += 1 %> <% end %> <% else %> <%# %> <% end %>
S.No Type HSN Code Category Product Code Product Desc Product Material Q.A Code MQNB no Total Label Qty(per box) MRP Action
<%= i %> <%= temp.Itm_type %> <%= temp.Itm_hsncode %> <%= temp.Itm_Ctg %> <%= temp.Itm_Code %> <%= temp.Itm_desc %> <%= temp.Itm_Matrial %> <%= temp.Itm_QaCode %> <% if temp.Itm_mqnb.blank? || temp.Itm_mqnb.to_i == 0 %> <%else%> <%=temp.Itm_mqnb %> <%end%> <% if temp.Itm_total_label.blank? || temp.Itm_total_label.to_i == 0 %> <%else%> <%=temp.Itm_total_label %> <%end%> <%= temp.Itm_qty %> <%= temp.Itm_mrp %>
No Records Found
<% ids_array = @temp_list.map(&:id).join(',') %>
<%= 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 @search_prod_type.present? && (@search_prod_type.to_s == 'DMC' || @search_prod_type.to_s == 'SMC') %> <% end %> <% i += 1 %> <% end %> <% else %> <% end %>
S.No TypeHSN CodeCategory Product Code Product Desc Product Material Q.A Code Qty(per box) MRP Action
<%= i %> <%= product.Itm_type %><%= product.Itm_hsncode %><%= product.Itm_Ctg %> <%= product.Itm_Code %> <%= product.Itm_desc %> <%= product.Itm_Matrial %> <%= product.Itm_QaCode %> <%= product.Itm_qty %> <%= product.Itm_mrp %>
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%>