{% extends "base.html" %} {% block content %}

{{ shop.shop_name if shop else 'Shop Manager POS' }}

{{ shop.address if shop and shop.address else 'None' }}
Phone: {{ shop.phone if shop and shop.phone else 'None' }}

Inv: REC-{{ "%05d" | format(p.id) }} {{ p.created_at.strftime("%d-%m-%y %I:%M%p") if p.created_at else '' }}
{% if customer %}
{{ customer.name }} {{ customer.phone or '' }}
{% else %}
Walk-in Customer
{% endif %}
Item Qty Price Total
Due Collection Payment 1 {{ "%.2f"|format(p.amount or 0) }} {{ "%.2f"|format(p.amount or 0) }}

Subtotal ৳ {{ "%.2f"|format(p.amount or 0) }}
Grand Total ৳ {{ "%.2f"|format(p.amount or 0) }}
Paid ({{ p.method or 'Cash' }}) ৳ {{ "%.2f"|format(p.amount or 0) }}
Remaining Due ৳ {{ "%.2f"|format(total_due or 0) }}

{{ l('Download PDF', 'পিডিএফ ডাউনলোড') }}
{% endblock %}