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

{% trans 'Bill' %}

{% if bill.is_draft %} {% trans 'Review Bill' %} {% endif %} {% if bill.is_review %} {% endif %} {% if bill.is_approved %} {% trans 'Record Payment' %} {% endif %} {% if bill.is_approved %} {% endif %}

{% trans 'Paid Amount' %}

{{ bill.amount_paid }}

Owned {{ bill.get_amount_open }}
{{ bill.get_progress_percent }}%
{% if 'net' in bill.terms %}

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

{% trans 'Due Amount' %}

{% if bill.is_paid %}

{{ bill.amount_due }}

{% else %}

{{ bill.amount_due }}

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

#{{ bill.bill_number }}

{% trans "Bill Date" %} :

{{ bill.created }}

{% trans "Customer Name" %} :

{{ bill.vendor.vendor_name }}

{% trans "bill Status" %} :
{% if bill.bill_status == 'draft' %} {% trans "Draft" %} {% elif bill.bill_status == 'in_review' %} {% trans "In Review" %} {% elif bill.bill_status == 'approved' %} {% trans "Approved" %} {% elif bill.bill_status == 'declined' %} {% trans "Declined" %} {% elif bill.bill_status == 'paid' %} {% trans "Paid" %} {% endif %}
{% for transaction in transactions %} {% endfor %}
# {% trans "Item" %} {% trans "Quantity" %} {% trans "Unit Price" %} {% trans "Total" %}
{{ transaction.item.item_model.name }} {{ transaction.item.quantity }} {{ transaction.item.unit_cost }} {{ transaction.total }}
{% trans "Vat Amount" %} {{ bill.additional_info.car_finance.vat_amount }}
{% trans "Grand Total" %} {{ grand_total }}
{% endblock %} {% block customJS %} {% endblock %}