{% extends 'bills/base.html' %} {% load i18n %} {% block head %} {% endblock %} {% block body %}
{% block header %}
{{ seller.get_name }}

{{ seller.address }}
{{ seller.zipcode }} - {% trans seller.city %}
{% trans seller.get_country_display %}

{{ seller_info.phone }}
{{ seller_info.email }}
{{ seller_info.website }}

{% endblock %} {% block summary %}
{% trans bill.get_type_display.capitalize %}
{{ bill.number }}

{% trans "DUE DATE" %}
{{ bill.due_on | default:default_due_date | date }}
{% trans "TOTAL" %}
{{ bill.get_total }} &{{ currency.lower }};
{% blocktrans with bill_type=bill.get_type_display %}{{ bill_type|upper }} DATE {% endblocktrans %}
{{ bill.closed_on | default:now | date }}
{{ buyer.get_name }}
{{ buyer.vat }}
{{ buyer.address }}
{{ buyer.zipcode }} - {% trans buyer.city %}
{% trans buyer.get_country_display %}
{% endblock %} {% block content %}
id {% trans "description" %} {% trans "period" %} {% trans "hrs/qty" %} {% trans "rate/price" %} {% trans "subtotal" %}
{% for line in lines %} {% with sublines=line.sublines.all %} {{ line.id }} {{ line.description }} {{ line.get_verbose_period }} {{ line.get_verbose_quantity|default:" "|safe }} {% if line.rate %}{{ line.rate }} &{{ currency.lower }};{% else %} {% endif %} {{ line.subtotal }} &{{ currency.lower }};
{% for subline in sublines %}   {{ subline.description }}       {{ subline.total }} &{{ currency.lower }};
{% endfor %} {% endwith %} {% endfor %}

 
{% for tax, subtotal in bill.get_subtotals.items %} {% trans "subtotal" %} {{ tax }}% {% trans "VAT" %} {{ subtotal | first }} &{{ currency.lower }};
{% trans "taxes" %} {{ tax }}% {% trans "VAT" %} {{ subtotal | last }} &{{ currency.lower }};
{% endfor %} {% trans "total" %} {{ bill.get_total }} &{{ currency.lower }};
{% endblock %} {% block footer %}
{% endblock %} {% endblock %}