sysmocom-stock/app/views/spree/stock_mailer/stock_report_email.text.erb

22 lines
403 B
Plaintext

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['days'].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 %>