<%= render "layouts/portlet-config" %> <%= render "layouts/theme-panel" %> <% if flash[:error] %>
× <%= flash[:error] %>
<% end %>
<%= render "layouts/breadcrumbs" %>
<%= form_tag({:action=>'product_list'} ,:multipart=>true,:id=>'myForms' ) do %>

checked<%end%> class="form-control" name="clear_sess" id="clear_sess" value="Y"/> Search without session
Search
OEM
OEM Brand
 
<% pagestart = params[:page] ? params[:page] : 1 if pagestart.to_i <=1 i = 1 else i = ((pagestart.to_i-1)*10)+1 i = i.to_i end if @product.length >0 @product.each do | pds | hdhsncode = "" newmodelno = "" myimages = "" mypcatlId = "" hsnobj = get_hsn_listing(pds.pd_hsn) if hsnobj hdhsncode = hsnobj.hd_hsncode end pdcatlogobj = get_catalogue_detail(pds.pd_compcode,pds.pd_productcode) if pdcatlogobj myimages = pdcatlogobj.pct_origin_img end if pds.pd_modelno!=nil && pds.pd_modelno!='' pd_modelno = pds.pd_modelno.to_s.split(",") pd_modelno.each do |newmodelrow| newmodelno += newmodelrow.to_s+", " end newmodelno = (newmodelno.to_s.chop).to_s.chop end %> <% i +=1 end else %> <% end %>
SL. No. Adhunik
Ref.No.
Product Name HSN Category Brand Code Weight Stock TAX Inc. OEM OEM Brand Model Image Action
<%=i%> <%=pds.pd_productcode%> <%=pds.pd_productname%> <%=hdhsncode%> <%=pds.pc_categoryname%> <%=pds.pb_brandname%> <%=pds.pd_weight%> <% if pds.cb_closing_bal!=nil && pds.cb_closing_bal!='' && pds.cb_closing_bal.to_f!=0 %> <%=pds.cb_opening_bal%>/<%=pds.cb_closing_bal%> <% end %> <%=pds.pd_taxtincyesno%> <% oemname = "" oembrand = "" arrxitem = [] ooemid = get_all_oem_listed(pds.pd_productcode) if ooemid !=nil && ooemid !='' oemobj = get_oem_all_data(ooemid) if oemobj.length >0 oemobj.each do |newitem| oemname += newitem.pi_oem.to_s+"
" arrxitem.push newitem.pi_brandanme end if arrxitem && arrxitem.length >0 arrxitems = arrxitem.uniq arrxitems.each do |newbrnds| oembrand +=newbrnds.to_s+"
" end end end end %> <%=oemname.to_s.html_safe %>
<%=oembrand.html_safe%> <%=newmodelno%> <% if myimages!='' && myimages!=nil %> <% else %> NA <% end %>
No Records Found
<%= will_paginate(@product)%>
<% end %>