<tr id="cash_out_<%= cash_out.id %>">
  <td><%= cash_out.id %></td>
  <% if current_user.usertype == "A" %>
    <td>
    <%= OpenCashRegister.get_pointsale(cash_out.open_cash_register_id, "open_cash_register").name %> 
    </td> 
  <% end %>
  <td><%= cash_out.open_cash_register.cash_register.name %> </td>
  <td><%= number_to_currency(cash_out.amount_in, precision: 2) %> </td>
  <td><%= number_to_currency(cash_out.amount_out, precision: 2)  %></td>
  <td><%= number_to_currency(cash_out.amount_in - cash_out.amount_out, precision: 2)  %></td>  
  <td><%= l(cash_out.created_at, :format => '%d/%B/%Y') %></td>
  <td><%= cash_out.user.first_name %></td>
  <td><%= (cash_out.received_by.blank? ? "" : cash_out.received_by.first_name) %></td>
  <td class="text-center">
    <%= link_to cash_out, {:class=>"btn btn-icon-only default", :title=>"Ver corte de caja"} do %>
      <i class="fa fa-search"></i>
    <% end %>
  </td>
</tr>