{% extends 'report_html_accounts/reports/base.html' %} {% block title %}Sales Summary{% endblock %} {% block report_header %}

Sales Summary

Period
{{ start_date|dateformat }} to {{ end_date|dateformat }}
Channel
{{ channel and channel.rec_name or 'All' }}
Customer
{{ customer and customer.rec_name or 'All' }}
Product
{{ product and product.rec_name or 'Any' }}
{% endblock report_header %} {% block report_body scoped %}

Orders( {{sales|length}} )


{% if detailed_payments %} {% for gateway in gateways %} {% endfor %} {% endif %} {% for sale in sales %} {% if detailed_payments %} {% for gateway in gateways %} {% endfor %} {% endif %} {% endfor %} {% for currency in sales_by_currency %} {% if detailed_payments %} {% for gateway in gateways %} {% endfor %} {% endif %} {% endfor %}
Order # Date Customer Untaxed Tax Total Payment Available{{ gateway.name }}Current Status
{{ sale.number }} {{ sale.sale_date|dateformat }} {{ sale.party.rec_name }} {{ sale.untaxed_amount|currencyformat(sale.currency.code) }} {{ sale.tax_amount|currencyformat(sale.currency.code) }} {{ sale.total_amount|currencyformat(sale.currency.code) }} {{ sale.payment_available|currencyformat(sale.currency.code) }}
{{ pbsg[sale.id][gateway.id]|currencyformat(sale.currency.code) }}{{ sale.state|capitalize }}
Total - {{ currency.code }} {{ sales_by_currency[currency]['untaxed']|currencyformat(currency.code) }} {{ sales_by_currency[currency]['tax']|currencyformat(currency.code) }} {{ sales_by_currency[currency]['total']|currencyformat(currency.code) }} {{ sales_by_currency[currency]['payment_available']|currencyformat(currency.code) }}-

Payments


{% if sales_by_currency|length > 1 %} {% endif %} {% for gateway, currency_amounts in pbgc.items() %} {% for currency, amount in currency_amounts.items() %} {% if sales_by_currency|length > 1 %} {% endif %} {% endfor %} {% endfor %} {% for currency, amount in pbc.items() %} {% if sales_by_currency|length > 1 %} {% endif %} {% endfor %}
GatewayCurrencyAmount
{{ gateway.name }}{{ currency.code }}{{ amount|currencyformat(currency.code) }}
Total{{ currency.code }}{{ amount|currencyformat(currency.code) }}
{% if not product %}

Top Products


{% for product, quantity in top_10_products %} {% endfor %}
Product Quantity
{{ product.rec_name }} {{ quantity }}
{% endif %} {% endblock report_body %}