{# DrCr: Web-based double-entry bookkeeping framework Copyright (C) 2022 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.html' %} {% block title %}Edit statement line charge{% endblock %} {% block body %}

Statement line

Source account Date Description Dr Cr Balance
{{ statement_line.source_account }} {{ statement_line.dt.strftime('%Y-%m-%d') }} {{ statement_line.description }} {{ statement_line.amount().format() if statement_line.quantity >= 0 else '' }} {{ (statement_line.amount()|abs).format() if statement_line.quantity < 0 else '' }} {{ statement_line.balance or '' }}

Transaction

{# FIXME: Customise date, etc. #} {# Source line #} {% if statement_line.quantity >= 0 %}{% else %}{% endif %} {% if statement_line.quantity < 0 %}{% else %}{% endif %} {# Charge line #} {% if statement_line.quantity < 0 %}{% else %}{% endif %} {% if statement_line.quantity >= 0 %}{% else %}{% endif %}
Date Description Dr Cr
{{ statement_line.dt.strftime('%Y-%m-%d') }}
{{ 'Dr' if statement_line.quantity >= 0 else 'Cr' }} {{ statement_line.source_account }} {##}{{ statement_line.amount().format() }}{{ (statement_line.amount()|abs).format() }}
{{ 'Cr' if statement_line.quantity >= 0 else 'Dr' }} {{ (statement_line.amount()|abs).format() }}{{ statement_line.amount().format() }}
{% endblock %}