{% extends 'index.html' %} {% block sign_in %} Sign out ({{ session.profile.name }}) {% endblock %} {% block content %}

Current inventory

Orders Sales Samples
{% for item in c.inventory %} {% set qty_in_stock = item.qty_received - item.qty_sold - item.qty_sample_used - item.qty_sample_active %} {% set qty_available = qty_in_stock - item.qty_committed %}

{{ item.item_name }} {{ item.item_category }}

{{ item.qty_ordered }} on order, {{ qty_in_stock }} in stock, {{ item.qty_committed }} committed, {{ qty_available }} available to sell, {{ item.qty_sold }} sold to date, {{ item.qty_sample_active }} sample{{ 's' if item.qty_sample_active != 1 }}

{% else %}
  • No items
  • {% endfor %}
    {% endblock %}