{% extends "base.html" %} {% block title %}Sales — ArtNode{% endblock %} {% block content %}
{% if sales %}
Total Revenue
{{ total_revenue|ch_currency }}
Gallery Profit / Net
{{ total_profit|ch_currency }}
Consignor Payables
{{ total_consignor|ch_currency }}
{% for sale in sales %} {% set line = sale.line_items[0] if sale.line_items else none %} {% endfor %}
# Artwork Buyer Date Price Gallery Net Status
#{{ sale.id }} {% if line %}{{ line.artwork.title|truncate(35) }}{% endif %} {% if line and line.buyer %} {% if line.buyer.contact_type == "individual" %}{{ line.buyer.last_name }} {{ line.buyer.first_name }} {% else %}{{ line.buyer.organisation }}{% endif %} {% else %}—{% endif %} {{ sale.created_at|ch_date }} {% if line %}{{ line.price|ch_currency(line.currency) }}{% endif %} {% if line and sale.status not in ('cancelled', 'draft') %} {% if line.artwork.ownership_type == 'consignment' or line.artwork.is_consignment %} {{ line.gallery_net or 0|ch_currency(line.currency) }} {% else %} {% set profit = line.price - (line.artwork.acquisition_cost or 0) %} {{ profit|ch_currency(line.currency) }} {% endif %} {% else %}—{% endif %} {{ sale.status|replace("_", " ") }}
{% else %}

No sales yet

Record a sale from any artwork detail page.

{% endif %}
{% endblock %}