Detalle del corte de caja

Imprimir <%= link_to cash_outs_path(:filter => @filter, :current_page => @current_page), {:class=>"fr-space btn blue-hoki hidden-print"} do %> Regresar <% end %>
Datos generales
   Fecha:
<%= l(@cash_out.created_at, :format => '%A, %d de %B de %Y') %>
<% if current_user.usertype == "A" || current_user.usertype == "SS" %>
  Punto de venta:
<%= OpenCashRegister.get_pointsale(@cash_out.open_cash_register_id, "open_cash_register").name %>
<% end %>
  Caja registradora:
<%= @cash_out.open_cash_register.cash_register.name %>
   Realizó:
<%= @cash_out.user.first_name %>
   Recibió:
<%= @cash_out.received_by.first_name %>
   Observaciones:
<%= @cash_out.observations %>
  •   Fecha: <%= l(@cash_out.created_at, :format => '%A, %d de %B de %Y') %>
  • <% if current_user.usertype == "A" || current_user.usertype == "SS" %>
  •   Punto de venta: <%= OpenCashRegister.get_pointsale(@cash_out.open_cash_register_id, "open_cash_register").name %>
  • <% end %>
  •   Caja registradora: <%= @cash_out.open_cash_register.cash_register.name %>
  •   Realizó: <%= @cash_out.user.first_name %>
  •   Recibió: <%= @cash_out.received_by.first_name %>
  •   Observaciones: <%= @cash_out.observations %>
Resumen
  • Total de ventas <%= number_to_currency(@sales_total, precision: 2) %>
  • Total de egresos <%= number_to_currency(@expenses_total, precision: 2) %>
  • Efectivo inicial <%= number_to_currency(@cash_out.open_cash_register.initial_cash, precision: 2) %>
  • Retiro <%= number_to_currency(@cash_out.received_cash, precision: 2) %>
  • Fondo <%= number_to_currency(@cash_out.cash_fund, precision: 2) %>
  •   Total de ventas: <%= number_to_currency(@sales_total, precision: 2) %>
  •   Total de egresos: <%= number_to_currency(@expenses_total, precision: 2) %>
  •   Efectivo inicial: <%= number_to_currency(@cash_out.open_cash_register.initial_cash, precision: 2) %>
  •   Retiro de efectivo: <%= number_to_currency(@cash_out.received_cash, precision: 2) %>
  •   Fondo de caja: <%= number_to_currency(@cash_out.cash_fund, precision: 2) %>
<% @cash_out.cash_out_details.each_with_index do |detail, key| %> <% end %>
# Método de pago total de ingresos total de egresos Total
<%= key +1 %> <%= detail.payment_method.method %> <%= number_to_currency(detail.incoming, precision: 2) %> <%= number_to_currency(detail.outgoing, precision: 2) %> <%= number_to_currency(detail.total, precision: 2) %>
Entradas
<% @incomings.each_with_index do |move, key| %> > <% end %>
# Folio Caja registradora Método de pago Cantidad Concepto Hora
<%= key += 1 %> <%= move_concept_folio(move) %> <%= move.open_cash_register.cash_register.name %> <%= move.payment_method.method %> <%= number_to_currency(move.quantity, precision: 2) %> <%= cash_move_type(move) %> <%= l(move.created_at, format: '%I:%M %p') %>
Salidas
<% @outgoings.each_with_index do |move, key| %> <% end %>
# Folio Caja registradora Método de pago Cantidad Concepto Hora
<%= key + 1 %> <%= move_concept_folio(move) %> <%= move.open_cash_register.cash_register.name %> <%= move.payment_method.method %> <%= number_to_currency(move.quantity, precision: 2) %> <% case move.concept %> <% when "sale" %> <% if move.sale.cash? %> VENTA CANCELADA <% elsif move.sale.reserved? %> APARTADO CANCELADO <% end %> <% when "purchase" %> COMPRA <% when "expense" %> <%= move.expense.expensesconcept.name %>
<%= move.expense.observations %> <% when "credit_payment" %> ABONO CANCELADO <% end %>
<%= l(move.created_at, :format => '%I:%M %p') %>