<%= 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 %>
Search
<% end %>
<% 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 @Orders.length >0 @Orders.each do | csts | k = i+5 m = k+1 %> <% i +=1 end else %> <% end %>
Sl.No. Bill No Date Customer/Account Unit Amount Total Receive Amount Balance Action
<%=i%> <%=csts.vps_bill_number%> <%=csts.vps_date%> <%=csts.vps_account.to_s.split(/ |\_|\-/).map(&:capitalize).join(" ")%> <%=csts.un_name.to_s.split(/ |\_|\-/).map(&:capitalize).join(" ")%> <%="%.2f" % csts.vps_amount.to_f%> <%="%.2f" % csts.treceive.to_f%> <% bamounts = 0 if csts.treceive!='' && csts.treceive!=nil bamounts = csts.vps_amount.to_f-csts.treceive bamounts = "%.2f" % bamounts.to_f end %> <%=bamounts%> -----
No Records Found
<%= will_paginate(@Orders)%>