{# 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 . #} Account Transactions for {{ account.name }} as at {{ date.strftime('%d %B %Y') }}

Account Transactions

For {{ account.name }}

As at {{ date.strftime('%d %B %Y') }}

{% for transaction in transactions %} {% for posting in transaction.postings if posting.amount >= 0.05 or posting.amount < -0.05 %} {% endfor %} {% endfor %}
Date Description Account Dr Cr Balance
{{ pstart.strftime('%Y-%m-%d') }} Opening Balance {% if opening_balance >= 0 %} {{ opening_balance|b }} Dr {% else %} {{ -opening_balance|b }} Cr {% endif %}
{% if loop.first %}{{ transaction.date.strftime('%Y-%m-%d') }}{% endif %} {% if loop.first %}{{ transaction.payee }}{% endif %} {{ (posting.account|e).__str__().replace(':', ':')|safe }} {% if posting.amount > 0 %}{{ posting.amount|b }}{% endif %} {% if posting.amount < 0 %}{{ -posting.amount|b }}{% endif %} {% if loop.last %} {% if posting.balance >= 0 %} {{ posting.balance|b }} Dr {% else %} {{ -posting.balance|b }} Cr {% endif %} {% endif %}
{{ date.strftime('%Y-%m-%d') }} Closing Balance {% if closing_balance >= 0 %} {{ closing_balance|b }} Dr {% else %} {{ -closing_balance|b }} Cr {% endif %}