{% extends "pos/base.html" %} {% load static %} {% block content %}

Branch Transfer Summary

Back to Reports

Branch: {{ branch.branch_name }}

{% for item in branch_summary %}
{{ item.branch.branch_name }}
Sent to this branch
Transfers: {{ item.outgoing_count }}
Quantity: {{ item.outgoing_qty|floatformat:2 }}
Value: {{ item.outgoing_value|floatformat:2 }}
Received from this branch
Transfers: {{ item.incoming_count }}
Quantity: {{ item.incoming_qty|floatformat:2 }}
Value: {{ item.incoming_value|floatformat:2 }}

Net Quantity

{% if item.net_qty > 0 %}+{% endif %}{{ item.net_qty|floatformat:2 }}

{% if item.net_qty > 0 %} (More sent) {% elif item.net_qty < 0 %} (More received) {% else %} (Balanced) {% endif %}
Net Value

{% if item.net_value > 0 %}+{% endif %}{{ item.net_value|floatformat:2 }}

{% if item.net_value > 0 %} (Receivable) {% elif item.net_value < 0 %} (Payable) {% else %} (Settled) {% endif %}
{% empty %}
No connected branches found. Create a branch connection to start transferring stock.
{% endfor %}
{% if branch_summary %}
Summary Table
{% for item in branch_summary %} {% endfor %}
Branch Outgoing (Sent) Incoming (Received) Net
Count Qty Value Count Qty Value Qty Value
{{ item.branch.branch_name }} {{ item.outgoing_count }} {{ item.outgoing_qty|floatformat:2 }} {{ item.outgoing_value|floatformat:2 }} {{ item.incoming_count }} {{ item.incoming_qty|floatformat:2 }} {{ item.incoming_value|floatformat:2 }} {% if item.net_qty > 0 %}+{% endif %}{{ item.net_qty|floatformat:2 }} {% if item.net_value > 0 %}+{% endif %}{{ item.net_value|floatformat:2 }}
{% endif %}
{% endblock content %}