|
<%= result[:cashier_terminal_name] rescue '-'%>
|
<%= result[:employee_name] rescue '-'%>
|
<%= result[:shift_started_at].strftime("%e %b %I:%M%p") rescue '-' %> -
<%= result[:shift_closed_at].strftime("%e %b %I:%M%p") rescue '-' %>
|
<%= sprintf "%.2f",result[:cash_sales].to_f.to_d rescue '-'%> |
<%= sprintf "%.2f",result[:credit_sales].to_f.to_d rescue '-'%> |
<%= sprintf "%.2f",result[:other_sales].to_f.to_d rescue '-'%> |
<%= sprintf "%.2f",result[:foc_sales].to_f.to_d rescue '-'%>
|
<%= sprintf "%.2f",result[:grand_total].to_f.to_d rescue '-'%> |
<% grand_total = result[:grand_total].to_f %>
<% cash += result[:cash_sales].to_f %>
<% credit += result[:credit_sales].to_f %>
<% card += result[:other_sales].to_f %>
<% foc += result[:foc_sales].to_f %>
<% total += result[:grand_total].to_f %>
<% g_total += grand_total.to_f %>
<% end %>
|
<%= sprintf("%.2f",cash) rescue '-'%> |
<%= sprintf("%.2f",credit) rescue '-'%> |
<%= sprintf("%.2f",card) rescue '-'%> |
<%= sprintf("%.2f",foc) rescue '-'%> |
<%= sprintf("%.2f",g_total) rescue '-'%> |