{% extends edc_base_template %} {% load static %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block extrahead %} {{ block.super }} {% endblock %} {% block document_ready %} {% endblock %} {% block main %} {{ block.super }}
Edc PharmacyLots › {{ lot.lot_no }}
{# ── Lot summary ── #}
Stock from batch {{ lot.lot_no }} — {{ lot.product.name|default:"—" }}   {{ lot.assignment|default:"—" }}   {% if unconfirmed_count == 0 and confirmed_count > 0 %} All confirmed {% elif confirmed_count > 0 %} {{ confirmed_count }} confirmed, {{ unconfirmed_count }} unconfirmed {% else %} {{ unconfirmed_count }} unconfirmed {% endif %}
Manufactured by {{ lot.manufactured_by|default:"—" }} Manufactured date {{ lot.manufactured_date|date:"d-M-Y"|default:"—" }}
Reference {{ lot.reference|default:"—" }} Comment {{ lot.comment|default:"—" }}
Country of origin {{ lot.country_of_origin|default:"—" }} Storage conditions {{ lot.storage_conditions|default:"—" }}
Processed until date {{ lot.processed_until_date }} Expiration date {{ lot.expiration_date }}
Edit batch (admin)
{# ── Stock items derived from this batch ── #}
Stock items   {{ stocks|length }}
{% if stocks %}
{% for s in stocks %} {% with ri=s.receive_item %} {% endwith %} {% endfor %}
Code From stock Container Units / cont. Order # Receive # Created Status
{{ s.code|default:"—" }} {% if s.from_stock %} {{ s.from_stock.code }} {% else %} {% endif %} {{ s.container|default:"—" }} {{ s.container_unit_qty }} {% if ri and ri.order_item.order %} {{ ri.order_item.order.order_identifier }} {% else %} — {% endif %} {% if ri and ri.receive %} {{ ri.receive.receive_identifier }} {% else %} — {% endif %} {{ s.stock_datetime|date:"d-M-Y H:i" }} {% if s.dispensed %} Dispensed {% elif s.in_transit %} In transit {% elif s.stored_at_location %} At site {% elif s.confirmed %} Confirmed {% else %} Unconfirmed {% endif %}
{% else %}

No stock items have been produced from this batch yet.

{% endif %}
{% endblock main %}