{% extends 'base.html' %} {% load i18n cashbook_extras %} {% block title %}{% trans "Receipt" %} - {{ ref }}{% endblock %} {% block content %}

{% trans "Receipt" %} • {{ ref }}

{% trans "Share via WhatsApp" %} {% trans "Download PDF" %}
{% if biz.logo %} Logo {% endif %}
{{ biz.name }}
{% if biz.city %}
{{ biz.city }}
{% endif %} {% if biz.country %}
{{ biz.country.name }}
{% endif %}
{% trans "Date" %}: {{ tx.date }}
{% trans "Reference" %}: {{ ref }}

{% trans "Customer" %}

{% if tx.contact %}
{{ tx.contact.name }}
{% if tx.contact.phone %}
{{ tx.contact.phone }}
{% endif %} {% else %}
-
{% endif %}

{% trans "Payment" %}

{% trans "Account" %}: {{ tx.account.name }}
{% trans "Amount" %}: {{ tx.amount }} {{ tx.currency|currency_label }}
{% if tx.sale_items.all %}

{% trans "Items" %}

{% for it in tx.sale_items.all %} {% endfor %}
{% trans "Item" %} {% trans "Qty" %} {% trans "Price" %} {% trans "Amount" %}
{{ it.name }} {{ it.quantity }} {{ it.price }} {{ tx.currency|currency_label }} {{ it.amount }} {{ tx.currency|currency_label }}
{% trans "Total" %} {{ tx.amount }} {{ tx.currency|currency_label }}
{% else %}
{% trans "Description" %}:
{{ tx.description|default:_("Payment received") }}
{% endif %}

{% trans "QR Code" %}

{% if qr_img_data %} QR {% else %}

{% trans "QR code unavailable" %}

{% endif %}
{% endblock %}