<%= render "layouts/portlet-config" %> <%= render "layouts/theme-panel" %> <% if flash[:error] %>
× <%= flash[:error] %>
<% end %> <%= render "layouts/breadcrumbs" %> <% mycurrentdate = Date.today %>
<%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myForms' ) do %>
Site Name "A"
Start Date
Total Days <% totadays = 0 tmymatexp = 0 if @siteHead totadays = ( mycurrentdate-@siteHead.st_start_date).to_i end if @matFooter!=nil && @matFooter.length >0 @matFooter.each do |matexps| tmymatexp +=matexps.texpenmat.to_f end end %>
Total Material
Total Contract
<% mytexpense = 0 mytcontrct = 0 if @exPFooter mytexpense = @exPFooter.texpense end if @contFooter mytcontrct = @contFooter.tcontracts end %>
Total Expense
<% if @LevelHead.length >0 @LevelHead.each do |levelmt| %> <% end end %> <% if @matFooter!=nil && @matFooter.length >0 @matFooter.each do |matexp| %> <% end %> <% else %> <% if @LevelHead.length >0 @LevelHead.each do |levelmt| %> <% end end %> <% end %> <% if @LevelHead.length >0 @LevelHead.each do |levelmt| %> <% end end %> <% if @LevelHead.length >0 @LevelHead.each do |levelmts| %> <% end end %>
<%=levelmt.lm_levelcode%>
Material<%=currency_formatted(matexp.texpenmat)%>
Contract <% if levelmt.lm_levelcode.to_s.upcase =='L11' %> <%=currency_formatted(mytcontrct)%> <% end %>
Expense <% if levelmts.lm_levelcode.to_s.upcase =='L10' %> <%=currency_formatted(mytexpense)%> <% end %>
Site Name "B"
<% totadays2 = 0 tmymatexp2 = 0 if @siteHead2 totadays2 = ( mycurrentdate-@siteHead.st_start_date).to_i end if @matFooter2!=nil && @matFooter2.length >0 @matFooter2.each do |matexps| tmymatexp2 +=matexps.texpenmat.to_f end end %>
Start Date
Total Days
<% mytexpense2 = 0 mytcontrct2 = 0 if @exPFooter2 mytexpense2 = @exPFooter2.texpense end if @contFooter2 mytcontrct2 = @contFooter2.tcontracts end %>
Total Material
Total Contract
Total Expense
<% if @LevelHead.length >0 @LevelHead.each do |levelmt| %> <% end end %> <% if @matFooter2!=nil && @matFooter2.length >0 @matFooter2.each do |matexp| %> <% end %> <% else %> <% if @LevelHead.length >0 @LevelHead.each do |levelmt| %> <% end end %> <% end %> <% if @LevelHead.length >0 @LevelHead.each do |levelmt2| %> <% end end %> <% if @LevelHead.length >0 @LevelHead.each do |levelmt2| %> <% end end %>
<%=levelmt.lm_levelcode%>
Material<%=currency_formatted(matexp.texpenmat)%>
Contract <% if levelmt2.lm_levelcode.to_s.upcase =='L11' %> <%=currency_formatted(mytcontrct2)%> <% end %>
Expense <% if levelmt2.lm_levelcode.to_s.upcase =='L10' %> <%=currency_formatted(mytexpense2)%> <% end %>
<% end %>
<%=render "layouts/popupforms"%>