Fixed trailing whitespace.
This commit is contained in:
parent
2c6996a9b4
commit
22d4bd2cd5
3 changed files with 30 additions and 2 deletions
26
templates/receipt.txt
Normal file
26
templates/receipt.txt
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
|
||||||
|
===================================================================
|
||||||
|
MATEMAT RECEIPT
|
||||||
|
===================================================================
|
||||||
|
|
||||||
|
User: {{ user|safe }}
|
||||||
|
Accounting period: {{ fdate|safe }} -- {{ tdate|safe }}
|
||||||
|
|
||||||
|
|
||||||
|
Opening balance: {{ fbal|safe }}
|
||||||
|
|
||||||
|
Transactions:
|
||||||
|
{% for t in transactions %}
|
||||||
|
{% include 'transaction.txt' %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
------------
|
||||||
|
Closing balance: {{ tbal|safe }}
|
||||||
|
|
||||||
|
===================================================================
|
||||||
|
|
||||||
|
{{ instance_name|striptags }}{% if receipt_id > 1 %}
|
||||||
|
Receipt N° {{ receipt_id|safe }}{% endif %}
|
||||||
|
|
||||||
|
This receipt is only provided for informational purposes and has no
|
||||||
|
legal force.
|
2
templates/transaction.txt
Normal file
2
templates/transaction.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
{{ t.receipt_date|safe }} {{ t.receipt_description.ljust(36)|safe }} {% if t.receipt_message is none %}{{ t.receipt_value.rjust(8)|safe }}{% else %}
|
||||||
|
{{ t.receipt_message.ljust(36)|safe }} {{ t.receipt_value.rjust(8)|safe }}{% endif %}
|
Loading…
Reference in a new issue