{% extends "base.html" %} {% block title %}{{ tr.number }}{% endblock %} {% block content %} {% set cur = wf.currency %}{% set other = tr.to_branch_id != tr.branch_id %}
{{ t('Warehouse Transfers') }}

{{ tr.number }} {% include "wtransfers/_badge.html" %}

{{ wf.bcode }} · {{ nm(wf) }} → {{ wt.bcode }} · {{ nm(wt) }} · {{ tr.date }}
{% for k, lbl in (('send_move_id', 'Sending entry'), ('receive_move_id', 'Sender: received entry'), ('dest_move_id', 'Receiver entry')) %} {% if tr[k] %}{{ t(lbl) }}{% endif %}{% endfor %} {% if can_write and tr.state == 'draft' %}
{% endif %}
{% if can_write and tr.state == 'in_transit' %}
{{ t('Sender: Dr Inter-branch / Cr Goods in Transit. Receiver: Dr Inventory / Cr Inter-branch.') }}
{% endif %}
{% if other and wt.currency != cur %}{% endif %}{% for l in lines %} {% if other and wt.currency != cur %}{% endif %}{% endfor %}{% if other and wt.currency != cur %}{% endif %}
{{ t('Product') }}{{ t('Quantity') }}{{ t('Value') }} ({{ cur }}){{ t('Value') }} ({{ wt.currency }})
{{ l.code }} {{ nm(l) }}{{ '%g' % l.quantity }}{{ l.value|money(cur, True) }}{{ l.value_dest|money(wt.currency, True) }}
{{ t('Total') }}{{ lines|sum(attribute='value')|money(cur) }}{{ lines|sum(attribute='value_dest')|money(wt.currency) }}
{% endblock %}