<%= render "layouts/portlet-config" %> <%= render "layouts/theme-panel" %> <% if flash[:error] %>
× <%= flash[:error] %>
<% end %>
<%= render "layouts/breadcrumbs" %>
<%= form_tag({:action=>'index'} ,: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 = "" hsnobj = get_hsn_listing(pds.pd_hsn) if hsnobj hdhsncode = hsnobj.hd_hsncode 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 supliername1 = "" supliername2 = "" supliername3 = "" cw_ratef = "" cw_rates = "" cw_ratet = "" datefirst = "" datesecond = "" datethird = "" cwtakeobj = process_merge_supplier_rate(pds.pd_productcode) if cwtakeobj && cwtakeobj.length >0 suplierf = cwtakeobj[0] ? cwtakeobj[0].supplier : 0 cw_ratef = cwtakeobj[0] ? cwtakeobj[0].rates : '' supliers = cwtakeobj[1] ? cwtakeobj[1].supplier : 0 cw_rates = cwtakeobj[1] ? cwtakeobj[1].rates : '' supliert = cwtakeobj[2] ? cwtakeobj[2].supplier : 0 cw_ratet = cwtakeobj[2] ? cwtakeobj[2].rates : '' datefirst = cwtakeobj[0] ? formatted_date(cwtakeobj[0].bdated) : '' datesecond = cwtakeobj[1] ? formatted_date(cwtakeobj[1].bdated) : '' datethird = cwtakeobj[2] ? formatted_date(cwtakeobj[2].bdated) : '' if suplierf.to_i >0 custobj = get_global_customers_listed(suplierf) if custobj supliername1 = custobj.cs_customername end end if supliers.to_i >0 custobjx = get_global_customers_listed(supliers) if custobjx supliername2 = custobjx.cs_customername end end if supliert.to_i >0 custobjz = get_global_customers_listed(supliert) if custobjz supliername3 = custobjz.cs_customername end end 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 Supplier
Rate
Dated
Supplier
Rate
Dated
Supplier
Rate
Dated
<%=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%> <%=supliername1%>
<%=currency_formatted(cw_ratef)%>
<%=datefirst%>
<%=supliername2%>
<%=currency_formatted(cw_rates)%>
<%=datesecond%>
<%=supliername3%>
<%=currency_formatted(cw_ratet)%>
<%=datethird%>
No Records Found
<%= will_paginate(@product)%>
<% end %>