{% extends edc_base_template %} {% load static %} {% block main %} {{ block.super }} {% url "edc_pharmacy:stock_take_results_url" stock_take=stock_take.pk as results_next %}
Edc PharmacyStock Take › Results
Stock Take Results — Bin {{ stock_take.storage_bin.bin_identifier }} · {{ stock_take.storage_bin.location.display_name|default:stock_take.storage_bin.location.name }} · {{ stock_take.stock_take_datetime|date:"d-M-Y H:i" }}
{{ stock_take.expected_count }}
Expected
{{ stock_take.scanned_count }}
Scanned
{{ stock_take.missing_count }}
Missing
{{ stock_take.unexpected_count }}
Unexpected
{# ── Missing ── #} {% if missing %}
Missing — registered in bin but not scanned ({{ missing|length }})
{% for item in missing %} {% endfor %}
Code Product Container Ledger Resolve
{% if item.stock %} {{ item.code }} {% else %} {{ item.code }} {% endif %} {{ item.stock.product.name|default:"—" }} {{ item.stock.container|default:"—" }} Ledger {% include "edc_pharmacy/stock/_resolve_actions.html" with item=item next_url=results_next %}
{% endif %} {# ── Unexpected ── #} {% if unexpected %}
Unexpected — scanned but not registered in this bin ({{ unexpected|length }})
{% for item in unexpected %} {% endfor %}
Code Product Current bin / location Ledger Resolve
{% if item.stock %} {{ item.code }} {% else %} {{ item.code }} (not in system) {% endif %} {% include "edc_pharmacy/stock/_cannot_add_hint.html" with item=item %} {{ item.stock.product.name|default:"—" }} {% if item.stock %} {{ item.stock.location.display_name|default:"—" }} {% else %} — {% endif %} Ledger {% include "edc_pharmacy/stock/_resolve_actions.html" with item=item next_url=results_next %}
{% endif %} {# ── Matched ── #} {% if matched %}
Matched — scanned and found in bin ({{ matched|length }})
{% for item in matched %} {% endfor %}
Code Product Container
{{ item.code }} {{ item.stock.product.name|default:"—" }} {{ item.stock.container|default:"—" }}
{% endif %} {% if not missing and not unexpected %}
All clear. Every item in the bin was accounted for.
{% endif %}

Redo stock take for this bin   All bins   Stock take records

{% endblock main %}