Skip to content

Instantly share code, notes, and snippets.

@DanielVartanov
Created September 22, 2017 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielVartanov/b83902875b20023a733fdb6beba279cb to your computer and use it in GitHub Desktop.
Save DanielVartanov/b83902875b20023a733fdb6beba279cb to your computer and use it in GitHub Desktop.
<h2 align="center">This is your best selling stock:</h2>
<table class="veeqo-table">
<th>Item</th>
<th>Projected sales</th>
<% @best_sellers.each do |best_seller| %>
<tr>
<td><%= best_seller.variant.full_title %></td>
<td><%= best_seller.projected_sales %></td>
</tr>
<% end %>
</table>
<h2 align="center">Place it in the following shelves in the following order:</h2>
<table class="veeqo-table">
<th>Shelf</th>
<th>Distance</th>
<% @hottest_sublocations.each do |hottest_sublocation| %>
<tr>
<td><%= hottest_sublocation.sublocation_name %></td>
<td><%= "#{hottest_sublocation.steps_from_packing_station} steps from the packing station" %></td>
</tr>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment