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

{{ seller.address }}
{{ seller.zipcode }} - {{ seller.city }}
{{ seller.country }}

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

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

DUE DATE
{{ bill.due_on | default:default_due_date | date }}
TOTAL
{{ bill.get_total }} &{{ currency.lower }};
{{ bill.get_type_display.upper }} DATE
{{ bill.closed_on | default:now | date }}
{{ buyer.name }}
{{ buyer.vat }}
{{ buyer.address }}
{{ buyer.zipcode }} - {{ buyer.city }}
{{ buyer.country }}
{% endblock %} {% block content %}
id description hrs/qty rate/price subtotal
{% for line in lines %} {% with sublines=line.sublines.all %} {{ line.id }} {{ line.description }} {{ line.quantity|default:" " }} {% 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.iteritems %} subtotal {{ tax }}% VAT {{ subtotal | first }} &{{ currency.lower }};
taxes {{ tax }}% VAT {{ subtotal | last }} &{{ currency.lower }};
{% endfor %} total {{ bill.get_total }} &{{ currency.lower }};
{% endblock %} {% block footer %}
{% endblock %} {% endblock %}