diff --git a/drcr/templates/transactions.html b/drcr/templates/transactions.html index 82bd7c2..acdc1b6 100644 --- a/drcr/templates/transactions.html +++ b/drcr/templates/transactions.html @@ -15,52 +15,73 @@ along with this program. If not, see . #} -{% extends 'base.html' %} +{% extends 'base_tailwind.html' %} {% block title %}Account transactions{% endblock %} {% block content %} -

Account transactions

+

+ Account transactions +

-
- New transaction - Show commodity detail + - +
- - - - - - + + + + + + - + {% for transaction in transactions %} {% if transaction.postings|length == 2 %} {% for posting in transaction.postings if posting.account == account %} - - - + + - - - - - + + + + + {% endfor %} {% else %} - - - + + @@ -70,21 +91,21 @@ {% for posting in transaction.postings if posting.account == account %} - - - - - - + + + + + + {% endfor %} {% for posting in transaction.postings if posting.account != account %} - - - - + + + +
DateDescriptionRelated AccountDrCrBalanceDateDescriptionRelated AccountDrCrBalance
{{ transaction.dt.strftime('%Y-%m-%d') }} +
{{ transaction.dt.strftime('%Y-%m-%d') }} {{ transaction.description }} - {% if transaction.id %}{% endif %} + {% if transaction.id %} + + + + + + {% endif %} {% for p in transaction.postings if p.account != account %}{{ p.account }}{% endfor %}{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }}{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }}{{ (running_totals[posting]|abs).format() }}{{ 'Dr' if running_totals[posting].quantity >= 0 else 'Cr' }}{% for p in transaction.postings if p.account != account %}{{ p.account }}{% endfor %}{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }}{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }}{{ (running_totals[posting]|abs).format() }}{{ 'Dr' if running_totals[posting].quantity >= 0 else 'Cr' }}
{{ transaction.dt.strftime('%Y-%m-%d') }} +
{{ transaction.dt.strftime('%Y-%m-%d') }} {{ transaction.description }} - {% if transaction.id %}{% endif %} + {% if transaction.id %} + + + + + + {% endif %}
{{ 'Dr' if posting.quantity >= 0 else 'Cr' }}{{ account }}{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }}{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }}{{ (running_totals[posting]|abs).format() }}{{ 'Dr' if running_totals[posting].quantity >= 0 else 'Cr' }}{{ 'Dr' if posting.quantity >= 0 else 'Cr' }}{{ account }}{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }}{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }}{{ (running_totals[posting]|abs).format() }}{{ 'Dr' if running_totals[posting].quantity >= 0 else 'Cr' }}
{{ 'Dr' if posting.quantity >= 0 else 'Cr' }}{{ posting.account }}{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }}{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }}{{ 'Dr' if posting.quantity >= 0 else 'Cr' }}{{ posting.account }}{{ posting.amount().as_cost().format() if posting.quantity >= 0 else '' }}{{ (posting.amount()|abs).as_cost().format() if posting.quantity < 0 else '' }}