<%= 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 %> <% @myAddAld = true @myPrintAld = true @myDeletAld = true @myEditAld = true %> <% if @pmtHeads!=nil && @pmtHeads.ph_status.to_s == 'C' %>
This Payment has been Cancelled
<% end %>
Doc No. [*]
Doc Date [*]
Group 
Supplier [*]
Remark
<% i = 1 @pmtotamt = 0 @pmtpayment = 0 @pmttaxamt = 0 @pmttaxable = 0 @pmtcashamt = 0 @pmtchqamt = 0 if @pmtFooter!=nil && @pmtFooter.length >0 @pmtFooter.each do |pmts| %> <% @pmtotamt += pmts.phd_total_amount.to_f @pmtpayment +=( pmts.phd_cheque_amount.to_f+pmts.phd_cash_pmt.to_f ) if pmts.phd_tax_on.to_f >0 tts = (pmts.phd_tax_on.to_f*pmts.phd_total_value.to_f)/100 taxb = (tts.to_f*pmts.phd_tax.to_f)/100 @pmttaxamt +=taxb.to_f @pmttaxable +=tts.to_f else tts = pmts.phd_total_value.to_f taxb = (tts.to_f*pmts.phd_tax.to_f)/100 @pmttaxamt +=taxb.to_f @pmttaxable +=tts.to_f end @pmtcashamt +=pmts.phd_cash_pmt.to_f @pmtchqamt +=pmts.phd_cheque_amount.to_f %> <% i +=1 end %> <% else %> <% end %>
Sl.No For Site MRN No. MRN Date Total Amount MRN Balance Payment Cash Invoice Amount
( Without Tax)
Total Value Balance
 <%=i%> 
Select MRN to process payment.

Payment Mode[*]
<% mymodes = "hidden" if @pmtMode.length >0 @pmtMode.each do |newkt| if @pmtHeads!=nil && @pmtHeads.ph_paymode.to_i == newkt.id.to_i if newkt.cs_customername.downcase != 'cash' mymodes = "" end end end end newmdreq = "" if mymodes == "" newmdreq = "required" end chequemode = "hidden" requireds = "" if @pmtHeads!=nil && @pmtHeads.ph_bank_type == 'cheque' chequemode = "" requireds = "required" end %>
Type : [*]
Cheque No [*]
maxlength="12" name="ph_cheque_no" id="ph_cheque_no" value="<% if @pmtHeads!=nil %><%=@pmtHeads.ph_cheque_no%><% end %>"/>
Cheque Date[*]
maxlength="15" name="ph_chequedate" id="ph_chequedate" value="<% if @pmtHeads!=nil %><%=@pmtHeads.ph_chequedate%><% end %>"/>
<% isbktype ="hidden" if @pmtHeads!=nil if @pmtHeads.ph_paymode.to_i == 2 || @pmtHeads.ph_paymode.to_i == 3 isbktype = '' end end %>
Bank Amount    <% if @pmtHeads !=nil%><%=indian_rupees_currency(currency_formatted(@pmtHeads.ph_bankamount))%><% end %>
Cash Amount    <% if @pmtHeads !=nil%> <%=indian_rupees_currency(currency_formatted(@pmtHeads.ph_cashamt))%><% end %>
Tax Amount   (<% if @pmtHeads !=nil%><%=indian_rupees_currency(currency_formatted(@pmtHeads.ph_taxpercent))%><% else %>0<% end %>%)    <% if @pmtHeads !=nil%><%=indian_rupees_currency(currency_formatted(@pmtHeads.ph_taxamount))%><% end %>
Tax Share Amount   (<% if @pmtHeads !=nil%><%=indian_rupees_currency(currency_formatted(@pmtHeads.ph_taxsharepercent))%><% else %>0<% end %>% )    <% if @pmtHeads !=nil%><%=indian_rupees_currency(currency_formatted(@pmtHeads.ph_taxshareamt))%><% end %>
Adjustment Amount       <% if @pmtHeads !=nil%><%=indian_rupees_currency(currency_formatted(@pmtHeads.ph_adjustamt))%><% else %>0<% end %>
Net Amount    <% if @pmtHeads !=nil%><%=indian_rupees_currency(currency_formatted(@pmtHeads.ph_netamount))%><% end %>
Supplier Site Wise Balance Detail
SL. NO. Site Code Site Name Balance Amount
No Record(s) found.

 
<% if session[:autherizedUserType] !='ofcvw' %>
<% if @isUpdateAlwd %> <% end %> <% if @pmtHeads!=nil && @pmtHeads.ph_status.to_s != 'C' %>
<% if @isCancelPath!=nil %> <% else %> <% end %>
<% end %>
<% end %>
<% end %>
<%= render 'layouts/common/select_all_mrn' %> <%=render 'layouts/common/message_common'%>