<%= render "layouts/portlet-config" %> <%= render "layouts/theme-panel" %> <%= render "layouts/breadcrumbs" %>
<%# ATTENDANCE BARS START %>

Total Strength

Employees
<% ftstrength = 0 if @LocWiseSummary && @LocWiseSummary.length >0 @LocWiseSummary.each do |newds| ftstrength += newds.totalstrengthm end end %> <%=ftstrength%>

On Duty

Present
<%=@TotalPresent%>

Off Duty

Absent
<%=@TotalAbsent%>

On Leave

Paid+Unpaid
<%=@TotalOnLeave%>

Late In

Count
<%=@TotalLTCount%>
<%# ATTENDANCE BARS END %> <%# GRID TABLE START %>

Location Summary

<% if @LocWiseSummary && @LocWiseSummary.length >0 @LocWiseSummary.each do |newds| newpercentage = newds.presents.to_f >0 ? (newds.presents.to_f/newds.totalstrengthm.to_f).to_f*100 : 0 %> <% end else %> <% end %>
Location Total Strength Present On Leave Absent Present(%)
<%=newds.location.to_s.upcase%> <%=newds.totalstrengthm%> <%=newds.presents%> <%=newds.onleave%> <%=newds.absents%> <%=currency_formatted(newpercentage)%>
No record(s) found.
<%# GRID TABLE END %>
<%# DATE AND LOCATION DROPDOWN START %> <%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myForms') do %>
<% end %>
<%# DATE AND LOCATION DROPDOWN END %> <%# ATTENDANCE BARS START %>

Total Strength

<%#
Employees
%> <% tstrength = 0 if @DateLocWiseList && @DateLocWiseList.length >0 tstrength = @DateLocWiseList.length end %>
<%=tstrength%>

Present

<%=@LocTotalPresent%>

Absent

<%=@LocTotalAbsent%>

On Leave

<%=@LocTotalOnLeave%>

Late In

<%=@LocTotalLTCount%>

Early Out

<%=@LocTotalErlOutCount%>

OverTime

<%=@LocOverTimeCount%>

Mispunch

<%=@LocMisPunch%>
<%# ATTENDANCE BARS END %> <%# GRID TABLE START %>

Location Summary

<% i = 1 if @DateLocWiseList && @DateLocWiseList.length >0 @DateLocWiseList.each do |newsmry| %> <% i +=1 end else %> <% end %>
SNo. Employee Code
Name
Date of Joining
Location
Department
Shift Arrival Time Departure Time Working Hours Late In Hours Early Out Hours OverTime Remark
<%=i%> <%=newsmry.al_empcode%>
<%=newsmry.sw_sewadar_name.to_s.upcase%>
<%=formatted_date(newsmry.sw_joiningdate)%>
<%=newsmry.location.to_s.upcase%>
<%=newsmry.mydepartment.to_s.upcase%>
<%=newsmry.al_shift%> <%=newsmry.al_arrtime%> <%=newsmry.all_deptime%> <%=newsmry.al_workhrs%> <%=newsmry.al_latehrs%> <%=newsmry.al_earlhrs%> <%=newsmry.al_overtime%> <%=newsmry.al_misspunch.to_s =='Y' ? '*' : '' %>
<%=newsmry.al_manualpunch.to_s !='' ? 'M' : '' %>
No record(s) found.
<%# GRID TABLE END %>