{% extends "base.html" %} {% block title %}Invoice Details - QuantumQuickSales{% endblock %} {% block page_title %}Invoice Details{% endblock %} {% block content %} {% if invoice_details %}
Name: {{ customer_name if customer_name is defined else '' }}
Phone: {{ customer_phone if customer_phone is defined else '' }}
Invoice ID: {{ invoice_id if invoice_id is defined else '' }}
Date: {{ invoice_date if invoice_date is defined else 'N/A' }}
Created By: {{ created_by if created_by is defined else '' }}
| Product ID | Product Name | Quantity | Price (₹) | Total (₹) |
|---|---|---|---|---|
| {{ item[0] }} | {{ item[1] }} | {{ item[2] }} | ₹{{ "%.2f"|format(item[3]) }} | ₹{{ "%.2f"|format(item[2] * item[3]) }} |
| Total Amount: | ₹{{ "%.2f"|format(total) }} | |||
Invoice ID: {{ invoice_id if invoice_id is defined else '' }}
Date: {{ invoice_date if invoice_date is defined else 'N/A' }}
Name: {{ customer_name if customer_name is defined else '' }}
Phone: {{ customer_phone if customer_phone is defined else '' }}
Total Items: {{ invoice_details|length }}
Total Amount: ₹{{ "%.2f"|format(total) }}
Payment Mode: {{ payment_mode if payment_mode is defined else 'Cash' }}
{% if payment_mode == 'UPI' %}UPI Amount: ₹{{ "%.2f"|format(upi_payment) }}
{% elif payment_mode == 'Cash' %}Cash Amount: ₹{{ "%.2f"|format(cash_payment) }}
{% elif payment_mode == 'Hybrid' %}UPI Amount: ₹{{ "%.2f"|format(upi_payment) }}
Cash Amount: ₹{{ "%.2f"|format(cash_payment) }}
{% endif %}Created By: {{ created_by if created_by is defined else '' }}