{% extends "base.html" %} {% from "_macros.html" import icon with context %} {% from "insights/_parts.html" import month_bars, change with context %} {% block title %}{{ t('Sales Overview') }}{% endblock %} {% block content %}

{{ t('Sales Overview') }}

{{ t('Fiscal year from') }} {{ fys }}·{{ t('Amounts in') }} {{ currency }}·{{ t('Excluding VAT') }}
{% if can_write %}
{{ icon('file') }}{{ t('Quotation') }} {{ icon('receipt') }}{{ t('Customer Invoice') }}
{% endif %}
{{ t('Revenue this month') }}{{ icon('trend') }}
{{ this_m|money(currency) }}{{ currency }}
{{ change(this_m, last_m) }}
{{ t('Revenue (YTD)') }}{{ icon('chart') }}
{{ ytd.revenue|money(currency) }}{{ currency }}
{{ t('Cost of revenue') }} {{ ytd.cost|money(currency) }}
{{ t('Gross Profit (YTD)') }}{{ icon('percent') }}
{{ ytd.margin|money(currency) }}{{ currency }}
{% if ytd.pct is not none %}{{ '%.1f'|format(ytd.pct) }}%{{ t('as in the Profit & Loss') }}{% endif %}
{{ t('Receivables') }}{{ icon('clock') }}
{{ recv|money(currency) }}{{ currency }}
{% if over %}{{ over|money(currency) }}{{ t('overdue') }} ({{ over_n }}){% else %}{{ recv_n }} {{ t('open invoices') }}{% endif %}
{% if has('sales') %}{{ icon('file') }}
{{ t('Open quotations') }}
{{ quote_v|money(currency) }}
{{ quote_n }}
{{ icon('cart') }}
{{ t('Orders to invoice') }}
{{ to_invoice }}
{{ t('Open') }} →
{% endif %} {{ icon('chart') }}
{{ t('Sales Analysis') }}
{{ t('By product, customer, month') }}
→

{{ t('Revenue and gross profit') }}

{{ t('Revenue') }}{{ t('Gross Profit') }}
{{ month_bars(months, series, peak, scale, currency, 'Revenue', 'Gross Profit') }}

{{ t('Top customers (YTD)') }}

{{ t('View all') }} →
{% for r in customers %} {% else %}{% endfor %}
{{ t('Customer') }}{{ t('Sales') }}{{ t('Margin %') }}
{{ r.label }}{{ r.revenue|money(currency) }}{{ '%.1f%%'|format(r.pct) if r.pct is not none else '—' }}
{{ t('Nothing yet.') }}

{{ t('Top products (YTD)') }}

{{ t('Gross Margin') }} →
{% for r in products %} {% else %}{% endfor %}
{{ t('Product') }}{{ t('Quantity') }}{{ t('Sales') }}{{ t('Cost of Goods Sold') }}{{ t('Gross Margin') }}{{ t('Margin %') }}
{{ r.label }}{{ '%g' % r.qty }}{{ r.revenue|money(currency) }}{{ r.cost|money(currency) }} {{ r.margin|money(currency) }}{{ '%.1f%%'|format(r.pct) if r.pct is not none else '—' }}
{{ t('Nothing yet.') }}
{% endblock %}