{% extends "base.html" %} {% load i18n %} {% load tenhal_tag %} {% block title %} {{ _("View Invoice") }} {% endblock title %} {% block customCSS %} {% endblock customCSS %} {% block content %}

{% trans 'Invoice' %}

{% if invoice.invoice_status == 'draft' %} {% trans "Draft" %} {% elif invoice.invoice_status == 'in_review' %} {% trans "In Review" %} {% elif invoice.invoice_status == 'approved' %} {% trans "Approved" %} {% elif invoice.invoice_status == 'declined' %} {% trans "Declined" %} {% elif invoice.invoice_status == 'paid' %} {% trans "Paid" %} {% endif %}
{% if perms.inventory.add_payment %} {% if invoice.invoice_status == 'in_review' %} {% endif %} {% if invoice.invoice_status == 'approved' %} {% if perms.inventory.add_payment %} {% comment %} {% trans 'Record Payment' %} {% endcomment %} {% trans 'Record Payment' %} {% endif %} {% endif %} {% if not invoice.is_paid %} {% if perms.inventory.change_payment %} {% endif %} {% endif %} {% endif %} {% trans 'Preview' %}
{{ invoice.amount_owned }}

{% trans 'Paid Amount' %}

{{ invoice.amount_paid }} 

{{ _("Owned") }} {{ invoice.get_amount_open|floatformat }} 
{{ invoice.get_progress_percent }}%
{% if 'net' in invoice.terms %}

{% trans 'Terms' %}: {{ invoice.terms }}
{% trans 'Date Due' %}: {{ invoice.date_due }}
{% trans 'Due in Days' %}: {{ invoice.due_in_days }}
{% trans 'Is Past Due' %}: {% if invoice.is_past_due %} {% trans 'Yes' %} {% else %} {% trans 'No' %} {% endif %}
{% endif %}

{% trans 'Due Amount' %}

{% if invoice.is_paid %}

{{ invoice.amount_due|floatformat }} 

{% else %}

{{ invoice.amount_due|floatformat }} 

{% endif %}
{% trans "Invoice Number" %} :

{{ invoice.invoice_number }}

{% trans "Invoice Date" %} :

{{ invoice.created }}

{% trans "Customer Name" %} :

{{ invoice.customer.customer_name }}

{% trans "Customer Email" %} :

{{ invoice.customer.email }}

{% trans "Invoice Status" %} :
{% if invoice.invoice_status == 'draft' %} {% trans "Draft" %} {% elif invoice.invoice_status == 'in_review' %} {% trans "In Review" %} {% elif invoice.invoice_status == 'approved' %} {% trans "Approved" %} {% elif invoice.invoice_status == 'declined' %} {% trans "Declined" %} {% elif invoice.invoice_status == 'paid' %} {% trans "Paid" %} {% endif %}
{% trans "Make" %} {% trans "Model" %} {% trans "Year" %} {% trans "VIN" %} {% trans "Quantity" %} {% trans "Unit Price" %} {% trans "Total" %}
{{ data.car.id_car_make }} {{ data.car.id_car_model }} {{ data.car.year }} {{ data.car.vin }} 1 {{ data.car.marked_price }} {{ data.car.marked_price }}
{% trans "Discount Amount" %} - {{ data.discount_amount|floatformat }}
{% trans "VAT" %} ({{ data.vat_rate }}%) + {{ data.vat_amount|floatformat }}
{% trans "Additional Services" %} {% for service in data.additional_services.services %} + {{ service.0.name }} - {{ service.0.price_|floatformat }}
{% endfor %}
{% trans "Grand Total" %} {{ data.grand_total|floatformat }}
{% endblock %} {% block customJS %} {% endblock %}