{% extends "base.html" %} {% from "_macros.html" import doc_export with context %} {% block title %}{{ r.number }}{% endblock %} {% block content %} {% set cur = branch.currency %}
{{ t('Currency Revaluation') }}

{{ r.number }}

{{ r.date }} · {{ branch.code }} — {{ nm(branch) }}
{{ doc_export() }} {{ t('Revaluation entry') }} {% if r.reversal_move_id %}{{ t('Reversal entry') }}{% endif %} {% if can_write %}
{% endif %}
{% for l in lines %} {% endfor %}
{{ t('Document') }}{{ t('Partner') }}{{ t('Currency') }}{{ t('Open amount') }}{{ t('Booked rate') }}{{ t('Rate on the date') }} {{ t('Carried at') }}{{ t('Value on the date') }}{{ t('Difference') }}
{{ l.number }}{{ nm(l) }}{{ l.currency }}{{ l.residual|money(l.currency) }} {{ l.book_rate }}{{ l.rate }}{{ l.carrying|money(cur) }}{{ l.revalued|money(cur) }} {{ l.diff|money(cur) }}
{{ t('Net unrealized gain (loss)') }}{{ lines|sum(attribute='diff')|money(cur) }}
{% endblock %}