<%= 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 %>
Name
Mobile
Reference No.
Ledger Type
Ledger Remark
<% end %>
<% pagestart = params[:page] ? params[:page] : 1 if pagestart.to_i <=1 i = 1 else i = ((pagestart.to_i-1)*30)+1 i = i.to_i end if @Customers.count >0 @Customers.each do | csts | k = i+5 m = k+1 %> <% i +=1 end else %> <% end %>
SL. NO. Reference No. Name Contact Person Mobile Email Country State Closing Bal. Action
<%=i%> <%=csts.cs_reference.to_s%> <%=csts.cs_customername.to_s%> <%=csts.cs_contactpersonname.to_s%> <%=csts.cs_mobilenumber%> <%=csts.cs_emailaddress%> <% if csts.country_name!=nil && csts.country_name!='' %> <%=csts.country_name.to_s.split(/ |\_|\-/).map(&:capitalize).join(" ")%> <% end %> <% if csts.state_name!=nil && csts.state_name!='' %> <%=csts.state_name.to_s.split(/ |\_|\-/).map(&:capitalize).join(" ")%> <% end %> <%="%.2f" % csts.cs_cbamount.to_f%>
No Records Found
<%= will_paginate(@Customers)%>