Show absolute values for transactions with commodities report

This commit is contained in:
RunasSudo 2020-04-03 19:33:59 +11:00
parent a9ac523d1b
commit 96438433bc
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -47,7 +47,7 @@
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
{{ amount|bt(True, prevlink) }} {{ amount|abs|bt(True, prevlink) }}
<td>{% if amount >= 0 %}Dr{% else %}Cr{% endif %}</td> <td>{% if amount >= 0 %}Dr{% else %}Cr{% endif %}</td>
</tr> </tr>
{% else %} {% else %}
@ -95,7 +95,7 @@
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
{{ amount|bt(True) }} {{ amount|abs|bt(True) }}
<td>{% if amount >= 0 %}Dr{% else %}Cr{% endif %}</td> <td>{% if amount >= 0 %}Dr{% else %}Cr{% endif %}</td>
</tr> </tr>
{% endfor %} {% endfor %}
@ -107,7 +107,7 @@
<td></td> <td></td>
<td></td> <td></td>
{% set closing_balance = closing_balance.exchange(report_currency, True) %} {% set closing_balance = closing_balance.exchange(report_currency, True) %}
{{ closing_balance|bt(True) }} {{ closing_balance|abs|bt(True) }}
<td>{% if closing_balance >= 0 %}Dr{% else %}Cr{% endif %}</td> <td>{% if closing_balance >= 0 %}Dr{% else %}Cr{% endif %}</td>
</tr> </tr>
</table> </table>