{{ shop.name }}

{{ shop.address }}

Phone: {{ shop.phone }}


{% if payment_method == 'credit' %}Invoice{% else %}Receipt{% endif %}

Served by: {{ served_by }}

Date:

{% if payment_method == 'credit' %}

Customer: {{ customer_name }}

Phone: {{ customer_phone }}


{% endif %} {% for item in items %} {% endfor %} {% if payment_method == 'credit' %} {% endif %} {% if payment_method == 'mpesa' %} {% if change_due > 0 %} {% endif %} {% endif %} {% if payment_method == 'cash' %} {% endif %} {% if payment_method == 'cheque' %} {% endif %}
Item Qty Price Total
{{ item.product.name }} {{ item.quantity }} KSh {{ item.selling_price|floatformat:2 }} KSh {{ item.subtotal|floatformat:2 }}
Total KSh {{ total_amount|floatformat:2 }}
Deposit Paid KSh {{ credit_paid|default:0|floatformat:2 }}
Balance Due KSh {{ balance_due|floatformat:2 }}
M-Pesa Paid KSh {{ total_amount|floatformat:2 }}
Change KSh {{ change_due|floatformat:2 }}
Cash Received KSh {{ cash_given|default:total_amount|floatformat:2 }}
Change KSh {{ change_due|default:0|floatformat:2 }}
Cheque Payment KSh {{ total_amount|floatformat:2 }}

{% if payment_method == 'credit' %}Please pay the outstanding balance by the due date.{% else %}Thank you for shopping with us!{% endif %}