{# ledger-pyreport Copyright © 2020 Lee Yingtong Li (RunasSudo) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . #} {% extends 'base_report.html' %} {% block title %}Account Transactions as at {{ date.strftime('%d %B %Y') }}{% endblock %} {% block report %}

Account Transactions

For {{ account.name }}

For the {{ period }}

{% for transaction in transactions %} {% for posting in transaction.postings %} {% set amount = posting.exchange(report_commodity, transaction.date) %} {% endfor %} {% endfor %}
Date Description Account Dr Cr
{% if loop.first %}{{ transaction.date.strftime('%Y-%m-%d') }}{% endif %} {% if loop.first %}{{ transaction.description }}{% endif %} {{ (posting.account.name|e).__str__().replace(':', ':')|safe }} {% if amount > 0 %}{{ amount|b }}{% endif %} {% if amount < 0 %}{{ -amount|b }}{% endif %}
{% endblock %}