{% extends 'base.html' %} {% block title %}{{ sale.reference }}{% endblock %} {% block content %}
| Product | Qty | Unit Price | Total | {% if request.user.is_owner or request.user.is_manager %}Cost | Profit | {% endif %}
|---|---|---|---|---|---|
| {{ item.product.name }} | {{ item.quantity }} {{ item.product.unit }} | {{ business.currency }} {{ item.unit_price|floatformat:0 }} | {{ business.currency }} {{ item.line_total|floatformat:0 }} | {% if request.user.is_owner or request.user.is_manager %}{{ business.currency }} {{ item.line_cost|floatformat:0 }} | {{ business.currency }} {{ item.line_profit|floatformat:0 }} | {% endif %}