<%= render "layouts/portlet-config" %> <%= render "layouts/theme-panel" %> <% if flash[:error] %>
× <%= flash[:error] %>
<% end %> <%= render "layouts/breadcrumbs" %> <%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myForms' ) do %>
Name
From
Upto
  
 
<% end %>
<% tsums = 0; 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 @PaymentList.length >0 @PaymentList.each do |pmtlist| tsums = tsums.to_f+pmtlist.pr_netamount.to_f %> <% i +=1 end else %> <% end %> <% if tsums.to_f >0 %> <% end %>
SL.No. Date Receipt No. Customer Name Debit Amount Status Action
<%=i%> <% datex = '' if pmtlist.pr_date!=nil && pmtlist.pr_date!='' datex = Date.parse(pmtlist.pr_date.to_s).strftime('%d-%b-%Y') else datex = "NA" end %> <%=datex%> <%=pmtlist.pr_receive_id%> <%=pmtlist.cs_customername.to_s.capitalize%> <%="%.2f" % pmtlist.pr_netamount%> <% if pmtlist.pr_doctype!=nil && pmtlist.pr_doctype!='' && pmtlist.pr_doctype =='receiveda' %> Indirect <% else %> Direct <% end %> <% if pmtlist.pr_doctype!=nil && pmtlist.pr_doctype!='' && pmtlist.pr_doctype =='receiveda' %> --- <% else %> <% end %>
No Records Found
Total <%="%.2f" % tsums%>