Corte de caja <%= pointsale.name %>
RESUMEN
Apertura de caja:
<%= l(cash_out.open_cash_register.created_at, :format => '%d/%m/%y %I:%M %p') %>
Corte de caja:
<%= l(cash_out.created_at, :format => '%d/%m/%y %I:%M %p') %>
Caja:
<%= cash_out.open_cash_register.cash_register.name %>
Realizó:
<%= cash_out.user.first_name %>
Recibió:
<%= cash_out.received_by.first_name %>
Articulos:
<%= cash_out.open_cash_register.products.count %>
<% if cash_out.observations.present? %>
Observaciones:
<%= cash_out.observations %>
<% end %>
| Fondo anterior |
Efectivo en caja |
Retiro |
Fondo |
|
<%= number_to_currency(initial_cash, precision: 2) %>
|
<%= number_to_currency(cash_out.physical_cash, precision: 2) %>
|
<%= number_to_currency(cash_out.received_cash, precision: 2) %>
|
<%= number_to_currency(cash_out.cash_fund, precision: 2) %>
|
RESUMEN
<% cash_out.cash_out_details.each do | detail | %>
<%= detail.payment_method.method.upcase %>
| Ingresos |
Gastos |
Total |
|
<%= number_to_currency(detail.incoming, precision: 2) %>
|
<%= number_to_currency(detail.outgoing, precision: 2) %>
|
<%= number_to_currency(detail.total, precision: 2) %>
|
<% end %>
SALIDA DE MERCANCÍA
|
|
|
<% @details.each_with_index do |detail, key| %>
<% if @details[key -1].present?
last_one_category = @details[key -1]['parent'].present? ? @details[key -1]['parent'] : @details[key -1]['category'] %>
<% else
last_one_category = ""
%>
<% end %>
<% current_category = detail['parent'].present? ? detail['parent'] : detail['category']%>
<% if last_one_category != current_category %>
| <%= current_category %> |
<% end %>
|
<%= detail['quantity'] %>
|
<%= truncate(detail['product_name'], :length => 30, :separator => ' ', :omission => '') %>
<%= truncate(Product.find(detail['product_id']).display_attributes_receipt.downcase, :length => 30, :separator => ' ', :omission => '') %>
|
<%= number_to_currency(detail['total'], precision: 2) %>
|
">
| |
Precio de venta unitario (<%= number_to_currency(detail["price_sale"], precision: 2) %>)
|
<%= number_to_currency(detail["total_without_discount"], precision: 2) %>
|
<% if detail["discount"] != 0 %>
| |
Descuento acumulado: |
- <%= number_to_currency(detail["discount"], precision: 2) %>
|
<% end %>
<% end %>
<% if expenses.present? %>
GASTOS
|
|
<% @expenses.each do |expense| %>
<%= expense.expensesconcept.name %>
<%= expense.observations %>
|
<%= number_to_currency(expense.quantity, precision: 2) %>
|
<% end %>
<% end %>
Nota: Los productos que se muestran en el listado de salidas de mercancía, son productos de ventas, apartados y creditos que fueron registrados durante este corte.