{% extends "base.html" %} {% block title %}Invoice Details - QuantumQuickSales{% endblock %} {% block page_title %}Invoice Details{% endblock %} {% block content %} {% if invoice_details %}
Customer Information

Name: {{ customer_name if customer_name is defined else '' }}

Phone: {{ customer_phone if customer_phone is defined else '' }}

Invoice Information

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 '' }}

{% for item in invoice_details %} {% endfor %}
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 Summary
Invoice Details

Invoice ID: {{ invoice_id if invoice_id is defined else '' }}

Date: {{ invoice_date if invoice_date is defined else 'N/A' }}

Customer Details

Name: {{ customer_name if customer_name is defined else '' }}

Phone: {{ customer_phone if customer_phone is defined else '' }}

Transaction Summary

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 '' }}

{% else %}
Invoice not found

The requested invoice could not be found.

Search Invoices
{% endif %} {% endblock %}