{#
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
Date | Code | Description |
---|---|---|
{{ transaction.date.strftime('%Y-%m-%d') }} | {{ transaction.code }} | {{ transaction.description }} |
Date | #}Description | Account | Dr | Cr | |||||
---|---|---|---|---|---|---|---|---|---|
{{ posting.comment }} | {{ (posting.account.name|e).__str__().replace(':', ': |
{% if posting.amount >= 0 %}
{{ posting.amount|abs|bc }} | {% if posting.amount.currency.price %}{{ '{' + posting.amount.currency.price|bc + '}' }}{% endif %} | {% else %} | {{ -posting.amount|abs|bc }} | {% if posting.amount.currency.price %}{{ '{' + posting.amount.currency.price|bc + '}' }}{% endif %} | {% endif %}|||
{% if loop.first %}Total{% endif %} | {% if dr_amount %} | {{ dr_amount|abs|bc }} | {% if dr_amount.currency.price %}{{ '{' + dr_amount.currency.price|bc + '}' }}{% endif %} | {% else %}{% endif %} {% if cr_amount %} | {{ -cr_amount|abs|bc }} | {% if cr_amount.currency.price %}{{ '{' + cr_amount.currency.price|bc + '}' }}{% endif %} | {% else %}{% endif %} | ||
{{ total_dr|abs|bc }} | {{ -total_cr|abs|bc }} |