{% extends "indy_hub/base.html" %} {% load i18n %} {% load static %} {% load humanize %} {% block page_title %}{% trans "Transaction History" %}{% endblock page_title %} {% block extra_css %} {% endblock extra_css %} {% block content %}
{% trans "Bought This Month" %} {{ month_stats.total_buy_volume|floatformat:0|intcomma }} ISK
{% trans "Sold This Month" %} {{ month_stats.total_sell_volume|floatformat:0|intcomma }} ISK
{% trans "Transactions" %} {{ month_stats.sell_count|add:month_stats.buy_count|intcomma }} {% trans "This month" %}
{% trans "All Transactions" %}
{{ page_obj.paginator.count|intcomma }} {% trans "records" %}
{% trans "Reset" %}
{% if transactions %}
{% for tx in transactions %} {% endfor %}
{% trans "Order" %} {% trans "Date" %} {% trans "Type" %} {% trans "User" %} {% trans "Items" %} {% trans "Quantity" %} {% trans "Unit Price" %} {% trans "Total Amount" %}
{% if tx.has_linked_order %} {{ tx.order_reference }} {% else %} {% trans "No linked order" %} {% endif %} {% if tx.order_item_count > 1 and tx.has_linked_order %} {{ tx.order_item_count }} {% trans "items" %} {% endif %}
TX #{{ tx.id }}
{{ tx.completed_at|date:"Y-m-d" }}
{{ tx.completed_at|date:"H:i" }}
{% if tx.transaction_type == "sell" %} {% trans "Sell Order" %} {% else %} {% trans "Buy Order" %} {% endif %} {{ tx.user.username }}
    {% for item in tx.order_items %}
  • {{ item.type_name }}
  • {% endfor %}
    {% for item in tx.order_items %}
  • {{ item.quantity|intcomma }}
  • {% endfor %}
    {% for item in tx.order_items %}
  • {{ item.unit_price|floatformat:2|intcomma }} ISK
  • {% endfor %}
    {% for item in tx.order_items %}
  • {{ item.total_price|floatformat:0|intcomma }} ISK
  • {% endfor %}
{% if tx.order_item_count > 1 %}
{% trans "Order total" %}: {{ tx.order_total_price|floatformat:0|intcomma }} ISK
{% endif %}
{% if is_paginated %} {% endif %} {% else %}
{% trans "No transactions yet." %}
{% endif %}
{% endblock content %}