Guest User

Untitled

a guest
May 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <% if @customer.pos.nil? %>
  2. <tr>
  3. <td></td>
  4. <td></td>
  5. <td><p>No Purchase Orders Yet for this Customer</p></td>
  6. <td></td>
  7. <td></td>
  8. <td></td>
  9. </tr>
  10. <% else %>
  11. <% for po in @customer.pos %>
  12. <tr>
  13. <td><%=h po.po_number %></td>
  14. <td><%=h po.vendor %></td>
  15. <td><%=h po.vendor_phone %></td>
  16. <td><%=h po.vendor_url %></td>
  17. <td><%=h po.created_at %></td>
  18. <td><%=h po.updated_at %></td>
  19. <td><%= link_to 'Show', po %></td>
  20. </tr>
  21. <% end %>
  22. <% end %>
Add Comment
Please, Sign In to add comment