| Request date |
{{ stock_request.request_datetime|date:"d-M-Y" }} |
Location |
{{ stock_request.location }} |
| Formulation |
{{ stock_request.formulation }} |
Container |
{{ stock_request.container }} |
| Containers per subject |
{{ stock_request.containers_per_subject }} |
Request items |
{{ total }} |
| Start date |
{{ stock_request.start_datetime|date:"d-M-Y"|default:"—" }} |
Cutoff date |
{{ stock_request.cutoff_datetime|date:"d-M-Y"|default:"—" }} |
| Allocated |
{{ allocated }} |
Pending allocation |
{{ pending }} |
{% if stock_request.subject_identifiers %}
| Include only |
{{ stock_request.subject_identifiers }} |
{% endif %}
{% if stock_request.excluded_subject_identifiers %}
| Excluded |
{{ stock_request.excluded_subject_identifiers }} |
{% endif %}
| Created by |
{{ stock_request.user_created|default:"—" }} |
|
|
{# ── Action buttons ── #}
{% if not stock_request.cancel %}
{# Edit — always available while not cancelled #}
Edit
{# Prepare — only before items are created #}
{% if total == 0 %}
Prepare items
{% endif %}
{# Allocate — once items exist #}
{% if total > 0 %}
{% if pending > 0 %}
Allocate
{% else %}
Allocate
{% endif %}
{% endif %}
{# Print patient barcodes — once any stock is allocated #}
{% if allocated > 0 %}
{% endif %}
{# Confirm labelled stock — shown once allocated; disabled if all already confirmed #}
{% if allocated > 0 %}
{% endif %}
{# Cancel — only if no allocations #}
{% if allocated == 0 %}
{% endif %}
{% endif %}{# end not cancelled #}
Audit trail