<%= 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 %>

Select Contractor
With Date
From Date
Upto Date
Select Site
  Use search filter to get Contract No by service provider. For get all Contract No press to reset button.

Contract No[*]
Contract Date[*]
Contractor[*]
Site[*]
Total Amt
Payment Term
Remark

     
<% if @SitePyItem!=nil && @SitePyItem.length >0 @SitePyItem.each do |pmts| %> <% end end %>
Contract No. Contract Dt. Site Amount Balance Remark
<%=pmts.ct_number%> <%=formatted_date(pmts.ct_date)%> <%=pmts.ct_site_name%> <%=currency_formatted(pmts.ct_total_amount)%> <%=currency_formatted(pmts.ct_balance_amount)%> <%=pmts.ct_remark%>
Image Upload
<% myfilesid = '' compcode = '' fl = 1 c1 = 0; if @headItem!=nil myfilesid = @headItem.ct_number compcode = @headItem.ct_compcode end obfile = get_contract_attached_file(compcode,myfilesid) if obfile.length >0 obfile.each do |fila| %> <% fl +=1 c1 +=1 end end %>
<%=fila.sma_attachment%>  Delete
 Delete Add More Files

 
 
<% end %>