{% extends "core/base.jinja" %}
{% block title %}
{% trans %}General journal:{% endtrans %} {{ object.name }}
{% endblock %}
{% macro display_tables(dict) %}
{% trans %}Credit{% endtrans %}
{% trans %}Nature of operation{% endtrans %} |
{% trans %}Sum{% endtrans %} |
{% for k,v in dict['CREDIT'].items() %}
{{ k }} |
{{ "%.2f" % v }} |
{% endfor %}
{% trans %}Total: {% endtrans %}{{ "%.2f" % dict['CREDIT_sum'] }}
{% trans %}Debit{% endtrans %}
{% trans %}Nature of operation{% endtrans %} |
{% trans %}Sum{% endtrans %} |
{% for k,v in dict['DEBIT'].items() %}
{{ k }} |
{{ "%.2f" % v }} |
{% endfor %}
{% trans %}Total: {% endtrans %}{{ "%.2f" % dict['DEBIT_sum'] }}
{% endmacro %}
{% block content %}
{% trans %}Statement by nature: {% endtrans %} {{ object.name }}
{% for k,v in statement.items() %}
{{ k }} : {{ "%.2f" % (v['CREDIT_sum'] - v['DEBIT_sum']) }}
{{ display_tables(v) }}
{% endfor %}
{% endblock %}