%= form_for(@cash_out, :remote => true, :html => {:class=>"form-horizontal", :id=> "cash_out_form"}) do |f| %>
| # | Método de pago | Total de ingresos | Total de gastos | Total |
|---|---|---|---|---|
| <%= key +1 %> | <%= payment["method"] %> | <%= number_to_currency(payment["incoming"], precision: 2) %> | <%= number_to_currency(payment["outgoing"], precision: 2) %> | <%= number_to_currency(payment["total"], precision: 2) %> " id="<%=key + 1%>"> |
| # | Folio | Caja registradora | Método de pago | Cantidad | Concepto | Hora |
|---|---|---|---|---|---|---|
| <%= key + 1 %> | <% case move.concept %> <% when "sale", "reserved_payment", "reserved_first_payment", "reserved_last_payment" %> <%= move.sale.sale_code %> <% when "purchase"%> <%= move.purchase.purchase_code %> <% when "expense"%> <%= move.expense.expense_code %> <% when "credit_payment"%> <%= move.credit_payment.id %> <% when "products_return"%> <%= move.products_return.sale.sale_code %> <% end %> | <%= move.open_cash_register.cash_register.name%> | <%= move.payment_method.method %> | <%= number_to_currency(move.quantity, precision: 2) %> |
<% case move.concept %>
<% when "sale"%>
VENTA
<% when "purchase"%>
COMPRA CANCELADA
<% when "expense"%>
GASTO CANCELADO
<% when "credit_payment"%>
ABONO A CRÉDITO cliente: <%= move.credit_payment.customer.nick_name %> <% when "reserved_payment"%> ABONO A APARTADO <% when "reserved_first_payment" %> ANTICIPO DE APARTADO <% when "reserved_last_payment" %> LIQUIDACIÓN DE APARTADO <% when "products_return" %> DIFERENCIA POR DEVOLUCIÓN <% end %> |
<%= l(move.created_at, :format => '%I:%M %p') %> |
| # | Folio | Caja registradora | Método de pago | Cantidad | Concepto | Hora |
|---|---|---|---|---|---|---|
| <%= key + 1 %> | <% case move.concept %> <% when "sale", "reserved_payment" %> <%= move.sale.sale_code %> <% when "purchase"%> <%= move.purchase.purchase_code %> <% when "expense"%> <%= move.expense.expense_code %> <% when "credit_payment"%> <%= move.credit_payment.id %> <% end %> | <%= 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') %> |