{% extends "base.html" %} {% block content %}
| ๐ Sale # | ๐ค Buyer Name | ๐ฑ Phone | ๐ Products | ๐ฆ Items | ๐ต Total Amount | ๐ณ Payment | ๐ Date | โก Actions | |
|---|---|---|---|---|---|---|---|---|---|
| {{ sale.sale_number }} | {{ sale.buyer_name }} | {{ sale.phone_number or '-' }} | {{ sale.product_names or 'No products' }} | {{ sale.item_count }} items | AED {{ "{:,.2f}".format(sale.total_amount) }} | {{ sale.payment_method or 'cash' }} | {{ sale.sale_date }} |
|
| Buyer | Phone | Total (with VAT) | Paid | Due | |
|---|---|---|---|---|---|
| {{ customer.buyer_name }} | {{ customer.phone_number or '-' }} | AED {{ '{:,.2f}'.format(customer.total_with_vat or 0) }} | AED {{ '{:,.2f}'.format(customer.paid_amount or 0) }} | AED {{ '{:,.2f}'.format(customer.due_amount or 0) }} |