<%= 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 %>
Company [*]
Customer [*]
<% mycust = '' if @viewPayment!=nil mycustobj = get_customer_detail(@viewPayment.hd_customer_id) if mycustobj mycust = mycustobj.cs_customername end end %>
Invoice No. [*]
Invoice Date [*]
Amount [*]
<% elsif session[:request_params]!=nil%><%=session[:request_params]['hd_amount'] %><% end %>"/>
Bal. Amount 
<% elsif session[:request_params]!=nil%><%=session[:request_params]['pr_amount'] %><% end %>"/>
Deduct Amount
<% elsif session[:request_params]!=nil%><%=session[:request_params]['hd_deduct_amount'] %><% end %>"/>
Net Amount [*]
<% elsif session[:request_params]!=nil%><%=session[:request_params]['hd_net_amount'] %><% end %>"/>
Remark
 
 
Invoice Number
Customer
<% 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 @MstGroup.length >0 @MstGroup.each do |gps| %> <% i +=1 end else %> <% end %>
SL.No. Company Customer Invoice Date Invoice No. Amount Bal. Amt. Deduct Amount Net Amount Remark Action
<%=i%> <% compname = '' compobj = get_company_detail(gps.hd_compcode) if compobj compname = compobj.cmp_companyname end %> <%=compname%> <% custname = '' custobj = get_customer_detail(gps.hd_customer_id) if custobj custname = custobj.cs_customername end %> <%=custname%> <% nd = '' if gps.hd_billdate!='' && gps.hd_billdate!=nil dt = Date.parse(gps.hd_billdate.to_s) nd = dt.strftime("%d-%m-%Y") end %> <%=nd%> <%=gps.hd_billnumber%> <%="%.2f" % gps.hd_amount.to_f%> <%="%.2f" % gps.hd_balance_amount.to_f%> <%="%.2f" % gps.hd_deduct_amount.to_f%> <%="%.2f" % gps.hd_net_amount.to_f%> <%=gps.hd_remark%>
No Records Found
<%= will_paginate(@MstGroup)%>
<% end %>