_cash_out.html.erb 1.1 KB

1234567891011121314151617181920212223
  1. <tr id="cash_out_<%= cash_out.id %>">
  2. <td><%= cash_out.id %></td>
  3. <% if current_user.usertype == "A" || current_user.usertype == "SS" %>
  4. <td>
  5. <%= OpenCashRegister.get_pointsale(cash_out.open_cash_register_id, "open_cash_register").name %>
  6. </td>
  7. <% end %>
  8. <td><%= cash_out.open_cash_register.cash_register.name %> </td>
  9. <td><%= number_to_currency(cash_out.amount_in, precision: 2) %> </td>
  10. <td><%= number_to_currency(cash_out.amount_out, precision: 2) %></td>
  11. <td><%= number_to_currency(cash_out.amount_in - cash_out.amount_out, precision: 2) %></td>
  12. <td><%= l(cash_out.created_at, :format => '%d/%B/%Y') %></td>
  13. <td><%= cash_out.user.first_name %></td>
  14. <td><%= (cash_out.received_by.blank? ? "" : cash_out.received_by.first_name) %></td>
  15. <td class="text-center">
  16. <%= link_to cash_out, {:class=>"btn btn-icon-only default", :title=>"Ver corte de caja"} do %>
  17. <i class="fa fa-search"></i>
  18. <% end %>
  19. <%= link_to print_cash_out_receipt_path(cash_out.id, format: 'pdf'), {:class=>"btn btn-icon-only default", :target => "blank"} do %>
  20. <i class="fa fa-print"></i>
  21. <% end %>
  22. </td>
  23. </tr>