{% extends 'invoices/report/base.html' %} {% load i18n %} {% block report_name %} {% trans 'Sale report' %} {% endblock %} {% block report_items %} {{ block.super }} {% if write_off_items %}
{% trans 'Write off' %}
{% for item in write_off_items %} {% include 'invoices/report/report-item.html' %} {% endfor %} {{ write_off_totals.qty }} {% if is_wholesale_price_included %} {{ write_off_totals.wholesale_total|stringformat:".1f" }} {% endif %} {{ write_off_totals.retail_total|stringformat:".1f" }} {% if is_profit_included %} {{ write_off_totals.profit_total|stringformat:".1f" }} {% endif %}   {% endif %} {% if return_items %}
{% trans 'Returns' %}
{% for item in return_items %} {% include 'invoices/report/report-item.html' %} {% endfor %} {{ return_totals.qty }} {% if is_wholesale_price_included %} {{ return_totals.wholesale_total|stringformat:".1f" }} {% endif %} {{ return_totals.retail_total|stringformat:".1f" }} {% if is_profit_included %} {{ return_totals.profit_total|stringformat:".1f" }} {% endif %}   {% endif %} {% endblock %} {% block report_table %} {{ block.super }} {% if return_items %} {% trans 'Total' %}: {{ grand_totals.qty }} {% if is_wholesale_price_included %} {{ grand_totals.wholesale_total|stringformat:".1f" }} {% endif %} {{ grand_totals.retail_total|stringformat:".1f" }} {% if is_profit_included %} {{ grand_totals.profit_total|stringformat:".1f" }} {% endif %} {% endif %} {% endblock %}