{% 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 Pharmacy › Stock Transaction Ledger
{# ─── Search form ─────────────────────────────────────────── #}
{# ─── Results ─────────────────────────────────────────────── #} {% if q %} {% if transactions %} {% if truncated %}

Showing first {{ max_rows }} of many results. View all in admin ›

{% else %}

{{ transactions|length }} transaction{{ transactions|length|pluralize }} found.

{% endif %} {% for row in transactions %} {% with txn=row.txn %} {% endwith %} {% endfor %}
Transaction Stock # Subject Type Date Actor From To Qty Δ Unit Qty Δ Reason
{{ txn.pk|stringformat:"s"|slice:":8" }} {{ txn.stock.code }} {% if row.subject_identifier %} {{ row.subject_identifier }} {% else %} — {% endif %} {{ txn.get_transaction_type_display|default:txn.transaction_type }} {{ txn.transaction_datetime|date:"d-M-Y H:i" }} {{ txn.actor.username|default:"—" }} {{ txn.from_location.display_name|default:"—" }} {{ txn.to_location.display_name|default:"—" }} {{ txn.qty_delta }} {{ txn.unit_qty_delta }} {{ txn.reason|default:"—" }}
Total {{ qty_total }} {{ unit_qty_total }}

View in admin (export, filter, sort) ›    Stock adjustments ›

{% else %}

No transactions found for {{ q }}.

Search in admin ›

{% endif %} {% else %}

Enter a stock code or subject identifier to search the ledger.

Browse full ledger in admin ›

{% endif %}
{% endblock main %}