{% macro table(entities) %}
ID | Type | Consumable | Supplier | Lot | Ordered | Emptied | In use | Storage |
---|---|---|---|---|---|---|---|---|
{{ batch.id }} | {{ batch.consumable.entity_type.capitalize() }} | {{ batch.consumable.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 }} |