{% macro table(entities) %} {% for batch, type, label in entities %} {% endfor %}
ID Type Consumable Supplier Lot Ordered Emptied In use Storage
{{ batch.id }} {{ type.capitalize() }} {{ label }} {{ batch.supplier }} {{ batch.lot }} {{ batch.date_ordered | format_date }} {% if batch.date_emtpied is not none %} {{ batch.date_emptied | format_date }} {% endif %} {% if batch.in_use %}Yes{% else %}No{% endif %} {{ batch.restricted_location }}
{% endmacro %}