{% extends "base.html" %} {% import 'components/macros.html' as ui %} {% block title %}Receipt - {{ brand_name }}{% endblock %} {% block head_extra %} {% endblock %} {% block content %}
Official Receipt
Receipt Code: {{ receipt_code or 'RCP-' ~ '%06d'|format(sale[0]) }}
| {{ item[0] }} | {{ item[1] }} x {{ "%.2f"|format(item[2]) }} | {{ "%.2f"|format(item[3]) }} |
Total: {{ currency_symbol }} {{ "%.2f"|format(sale[1]|float) }}
{% if sale[6] == 'cash' %} {% set cash_received = sale[9]|float if sale[9] is not none else sale[1]|float %} {% set change_due = sale[10]|float if sale[10] is not none else cash_received - (sale[1]|float) %}Cash Received: {{ currency_symbol }} {{ "%.2f"|format(cash_received) }}
Balance / Change Given: {{ currency_symbol }} {{ "%.2f"|format(change_due if change_due > 0 else 0) }}
{% endif %} {% if sale[11] %}Customer: {{ sale[11] }}
{% endif %} {% set returned = sale[4]|float if sale[4] is not none else 0 %} {% if returned > 0 %}Returned: {{ currency_symbol }} {{ "%.2f"|format(returned) }}
Net: {{ currency_symbol }} {{ "%.2f"|format(sale[1]|float - returned) }}
{% endif %}Cashier ID: {{ sale[2] }}
{% endif %}Status: PAID
{% if sale and sale[5] %} {% endif %}Thank you for shopping with us.