| <%= @shift.employee.name%> |
<%=@shift.cashier_terminal.name%> |
<%= @shift.shift_started_at.utc.getlocal.strftime('%d-%m-%Y %I:%M %p') %>
|
<%=@shift.opening_balance %> |
<%=@shift.closing_balance %> |
<%=@shift.cash_in %> |
<%=@shift.cash_out %> |
<%= @shift.total_receipt %> |
<%= @shift.dining_count %> |
<%= @shift.takeaway_count %> |
(<%= @shift.total_void %>) |
<% @total_amount_by_account.each do |amount| %>
|
Total <%= amount.account_name %> Amount |
<%= amount.total_price %> |
<%end%>
|
Net Sales |
<%=@shift.nett_sales %> |
<% @total_discount_by_account.each do |amount| %>
|
Total <%= amount.account_name %> Discount |
<%= amount.total_price %> |
<%end%>
<% if !@total_member_discount[0].member_discount.nil?
@member_discount = @total_member_discount[0].member_discount rescue 0.0
@overall = @shift.total_discounts - @member_discount
%>
|
Total Member Discount |
<%= @member_discount %> |
<%else @overall = @shift.total_discounts %>
<%end%>
|
Total Overall Discount |
<%= @overall %> |
|
Total Discount |
<%= @shift.total_discounts %> |
<% @sale_taxes.each do |tax| %>
|
<%= tax.tax_name %> |
<%= tax.st_amount %> |
<%end%>
|
Total Tax |
<%=@shift.total_taxes %> |
|
Rounding Adj |
<%= @shift.total_rounding %> |
|
Grand Total |
<%= @shift.grand_total %> |
|
<% total_other_amount = 0 %>
|
Cash Payment |
<%= @shift.cash_sales %> |
|
Credit Payment |
<%= @shift.credit_sales %> |
|
Other Payment Detail |
|
<% @payment_methods.each do |method| %>
|
<%= method.parameterize == 'paymal' ? 'Card' : method.parameterize %> Payment |
<%= @other_payment[method.parameterize.to_sym] || 0.0 %> |
<% total_other_amount = total_other_amount + (@other_payment[method.parameterize.to_sym] || 0.0) %>
<% end %>
|
FOC |
<%= @other_payment.foc_amount rescue 0.0 %> |
|
Total Other Payment |
<%= total_other_amount %> |
|
Total Payment |
<%= total_other_amount + @other_payment.foc_amount.to_d + @shift.cash_sales.to_d + @shift.credit_sales.to_d %> |
|