{% extends "base.html" %} {% block title %}{{ tr.number }}{% endblock %} {% block content %} {% set cur = wf.currency %}{% set other = tr.to_branch_id != tr.branch_id %}
| {{ t('Product') }} | {{ t('Quantity') }} | {{ t('Value') }} ({{ cur }}) | {% if other and wt.currency != cur %}{{ t('Value') }} ({{ wt.currency }}) | {% endif %}
|---|---|---|---|
| {{ l.code }} {{ nm(l) }} | {{ '%g' % l.quantity }} | {{ l.value|money(cur, True) }} | {% if other and wt.currency != cur %}{{ l.value_dest|money(wt.currency, True) }} | {% endif %}
| {{ t('Total') }} | {{ lines|sum(attribute='value')|money(cur) }} | {% if other and wt.currency != cur %}{{ lines|sum(attribute='value_dest')|money(wt.currency) }} | {% endif %}