{% 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 "Reference" %} {% trans "Executed" %} {% trans "Flow" %} {% trans "User" %} {% trans "Order Detail" %} {% trans "Financial Summary" %}
{% if tx.has_linked_order %} {{ tx.order_reference }} {% else %} {% trans "No linked order" %} {% endif %} TX #{{ tx.id }}
{% blocktrans count count=tx.order_item_count %}1 line item{% plural %}{{ count }} line items{% endblocktrans %}
{{ tx.completed_at|date:"Y-m-d" }} {{ tx.completed_at|date:"H:i" }}
{% if tx.transaction_type == "sell" %} {% trans "Sell Order" %} {% trans "Outgoing stock" %} {% else %} {% trans "Buy Order" %} {% trans "Incoming stock" %} {% endif %}
{{ tx.user.username }} {% if tx.transaction_type == "sell" %} {% trans "Seller" %} {% else %} {% trans "Buyer" %} {% endif %}
{{ tx.type_name }} {{ tx.quantity|intcomma }} {% trans "units" %}
    {% for item in tx.order_items %}
  • {{ item.type_name }} {{ item.quantity|intcomma }} × {{ item.unit_price|floatformat:2|intcomma }} ISK
  • {% endfor %}
{% trans "Order total" %} {{ tx.order_total_price|floatformat:0|intcomma }} ISK
{% trans "Quantity" %} {{ tx.quantity|intcomma }}
{% if tx.order_item_count > 1 %}{% trans "Avg unit" %}{% else %}{% trans "Unit price" %}{% endif %} {{ tx.unit_price|floatformat:2|intcomma }} ISK
{% if is_paginated %} {% endif %} {% else %}
{% trans "No transactions yet." %}
{% endif %}
{% endblock content %}