You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
412 B

Dear Shop-Owner,
below is the current stock report and estimates on when the products
will run low.
Estimates:
<% @forecast.each do |dict| %>
<%= dict['name'] %> => <%= dict['weighted_mean'].round(2) %> days until sold out.
<% end %>
Empty Products:
<% @empty_products.each do |product| %>
<%= product.name %>
<% end %>
Empty Variants:
<% @empty_variants.each do |variant| %>
<%= variant.name %>
<% end %>