2014-08-20 18:50:07 +00:00
{% extends 'bills/base.html' %}
2015-03-31 12:39:08 +00:00
{% load i18n %}
2014-08-20 18:50:07 +00:00
{% block head %}
< style type = "text/css" >
{% with color="#B23" %}
{% include 'bills/microspective.css' %}
{% endwith %}
< / style >
{% endblock %}
{% block body %}
2014-08-29 16:13:34 +00:00
< div class = "wrapper" >
2014-09-03 22:01:44 +00:00
< div class = "content" >
2014-08-20 18:50:07 +00:00
{% block header %}
< div id = "logo" >
{% block logo %}
2014-09-11 14:00:20 +00:00
< div style = "border-bottom:5px solid {{ color }}; color:{{ color }}; font-size:30; margin-right: 20px;" >
2014-08-20 18:50:07 +00:00
YOUR< br >
LOGO< br >
HERE< br >
< / div >
{% endblock %}
< / div >
< div id = "seller-details" >
< div claas = "address" >
2014-10-27 14:31:04 +00:00
< span class = "name" > {{ seller.get_name }}< / span >
2014-08-20 18:50:07 +00:00
< / div >
< div class = "contact" >
2014-08-22 11:28:46 +00:00
< p > {{ seller.address }}< br >
2015-04-20 14:23:10 +00:00
{{ seller.zipcode }} - {% trans seller.city %}< br >
{% trans seller.get_country_display %}< br >
2014-08-20 18:50:07 +00:00
< / p >
2014-08-22 11:28:46 +00:00
< p > < a href = "tel:93-803-21-32" > {{ seller_info.phone }}< / a > < br >
< a href = "mailto:sales@pangea.org" > {{ seller_info.email }}< / a > < br >
< a href = "http://www.pangea.org" > {{ seller_info.website }}< / a > < / p >
2014-08-20 18:50:07 +00:00
< / div >
< / div >
{% endblock %}
{% block summary %}
< div id = "bill-number" >
2015-05-27 14:05:25 +00:00
{% filter title %}{% trans bill.get_type_display %}{% endfilter %}< br >
2014-08-22 11:28:46 +00:00
< span class = "value" > {{ bill.number }}< / span > < br >
2014-08-20 18:50:07 +00:00
< / div >
< div id = "bill-summary" >
< hr >
< div id = "due-date" >
2015-04-20 14:23:10 +00:00
< span class = "title" > {% trans "DUE DATE" %}< / span > < br >
2015-05-28 09:43:57 +00:00
< psan class = "value" > {{ bill.due_on | default:default_due_date | date | capfirst }}< / span >
2014-08-20 18:50:07 +00:00
< / div >
< div id = "total" >
2015-04-20 14:23:10 +00:00
< span class = "title" > {% trans "TOTAL" %}< / span > < br >
2015-07-13 11:31:32 +00:00
< psan class = "value" > {{ bill.compute_total }} & {{ currency.lower }};< / span >
2014-08-20 18:50:07 +00:00
< / div >
< div id = "bill-date" >
2015-05-28 09:43:57 +00:00
< span class = "title" > {% blocktrans with bill_type=bill.get_type_display.upper %}{{ bill_type }} DATE{% endblocktrans %}< / span > < br >
< psan class = "value" > {{ bill.closed_on | default:now | date | capfirst }}< / span >
2014-08-20 18:50:07 +00:00
< / div >
< / div >
< div id = "buyer-details" >
2014-10-27 14:31:04 +00:00
< span class = "name" > {{ buyer.get_name }}< / span > < br >
2014-08-22 11:28:46 +00:00
{{ buyer.vat }}< br >
{{ buyer.address }}< br >
2015-04-20 14:23:10 +00:00
{{ buyer.zipcode }} - {% trans buyer.city %}< br >
{% trans buyer.get_country_display %}< br >
2014-08-20 18:50:07 +00:00
< / div >
{% endblock %}
{% block content %}
< div id = "lines" >
< span class = "title column-id" > id< / span >
2015-03-31 12:39:08 +00:00
< span class = "title column-description" > {% trans "description" %}< / span >
2015-04-20 14:23:10 +00:00
< span class = "title column-period" > {% trans "period" %}< / span >
2015-03-31 12:39:08 +00:00
< span class = "title column-quantity" > {% trans "hrs/qty" %}< / span >
< span class = "title column-rate" > {% trans "rate/price" %}< / span >
< span class = "title column-subtotal" > {% trans "subtotal" %}< / span >
2014-08-20 18:50:07 +00:00
< br >
2014-09-03 22:01:44 +00:00
{% for line in lines %}
2015-05-28 09:43:57 +00:00
{% with sublines=line.sublines.all description=line.description|slice:"38:" %}
2015-06-22 14:14:16 +00:00
< span class = "{% if not sublines and not description %}last {% endif %}column-id" > {% if not line.order_id %}L{% endif %}{{ line.order_id|default:line.pk }}< / span >
2015-05-28 09:43:57 +00:00
< span class = "{% if not sublines and not description %}last {% endif %}column-description" > {{ line.description|slice:":38" }}< / span >
2015-05-18 15:21:42 +00:00
< span class = "{% if not sublines and not description %}last {% endif %}column-period" > {{ line.get_verbose_period }}< / span >
< span class = "{% if not sublines and not description %}last {% endif %}column-quantity" > {{ line.get_verbose_quantity|default:" "|safe }}< / span >
< span class = "{% if not sublines and not description %}last {% endif %}column-rate" > {% if line.rate %}{{ line.rate }} & {{ currency.lower }};{% else %} {% endif %}< / span >
< span class = "{% if not sublines and not description %}last {% endif %}column-subtotal" > {{ line.subtotal }} & {{ currency.lower }};< / span >
< br >
{% if description %}
< span class = "{% if not sublines %}last {% endif %}subline column-id" > < / span >
2015-05-28 09:43:57 +00:00
< span class = "{% if not sublines %}last {% endif %}subline column-description" > {{ description|truncatechars:39 }}< / span >
2015-05-18 15:21:42 +00:00
< span class = "{% if not sublines %}last {% endif %}subline column-period" > < / span >
< span class = "{% if not sublines %}last {% endif %}subline column-quantity" > < / span >
< span class = "{% if not sublines %}last {% endif %}subline column-rate" > < / span >
< span class = "{% if not sublines %}last {% endif %}subline column-subtotal" > < / span >
{% endif %}
{% for subline in sublines %}
< span class = "{% if forloop.last %}last {% endif %}subline column-id" > < / span >
2015-05-28 09:43:57 +00:00
< span class = "{% if forloop.last %}last {% endif %}subline column-description" > {{ subline.description|truncatechars:39 }}< / span >
2015-05-18 15:21:42 +00:00
< span class = "{% if forloop.last %}last {% endif %}subline column-period" > < / span >
< span class = "{% if forloop.last %}last {% endif %}subline column-quantity" > < / span >
< span class = "{% if forloop.last %}last {% endif %}subline column-rate" > < / span >
< span class = "{% if forloop.last %}last {% endif %}subline column-subtotal" > {{ subline.total }} & {{ currency.lower }};< / span >
< br >
{% endfor %}
{% endwith %}
2014-08-22 11:28:46 +00:00
{% endfor %}
2014-08-20 18:50:07 +00:00
< / div >
< div id = "totals" >
2014-08-29 16:13:34 +00:00
< br > < br >
2015-06-02 12:59:49 +00:00
{% for tax, subtotal in bill.compute_subtotals.items %}
2015-04-20 14:23:10 +00:00
< span class = "subtotal column-title" > {% trans "subtotal" %} {{ tax }}% {% trans "VAT" %}< / span >
2014-09-03 13:56:02 +00:00
< span class = "subtotal column-value" > {{ subtotal | first }} & {{ currency.lower }};< / span >
< br >
2015-03-31 12:39:08 +00:00
< span class = "tax column-title" > {% trans "taxes" %} {{ tax }}% {% trans "VAT" %}< / span >
2014-09-03 13:56:02 +00:00
< span class = "tax column-value" > {{ subtotal | last }} & {{ currency.lower }};< / span >
< br >
{% endfor %}
2015-03-31 12:39:08 +00:00
< span class = "total column-title" > {% trans "total" %}< / span >
2015-07-13 11:31:32 +00:00
< span class = "total column-value" > {{ bill.compute_total }} & {{ currency.lower }};< / span >
2014-08-20 18:50:07 +00:00
< br >
< / div >
{% endblock %}
{% block footer %}
2014-08-29 16:13:34 +00:00
< / div >
2014-09-03 22:01:44 +00:00
< div class = "footer" >
2014-08-20 18:50:07 +00:00
< div id = "footer-column-1" >
< div id = "comments" >
2014-08-22 11:28:46 +00:00
{% if bill.comments %}
2015-03-31 12:39:08 +00:00
< span class = "title" > {% trans "COMMENTS" %}< / span > {{ bill.comments|linebreaksbr }}
2014-08-22 11:28:46 +00:00
{% endif %}
2014-08-20 18:50:07 +00:00
< / div >
< / div >
< div id = "footer-column-2" >
< div id = "payment" >
2015-03-31 12:39:08 +00:00
< span class = "title" > {% trans "PAYMENT" %}< / span >
2014-09-05 14:27:30 +00:00
{% if payment.message %}
2015-05-30 14:44:05 +00:00
{{ payment.message|safe }}
2014-09-03 22:01:44 +00:00
{% else %}
2015-05-27 14:05:25 +00:00
{% blocktrans with type=bill.get_type_display.lower %}
2015-05-28 09:43:57 +00:00
You can pay our < i > {{ type }}< / i > by bank transfer.< br >
2015-05-27 14:05:25 +00:00
Please make sure to state your name and the < i > {{ type }}< / i > number.
2014-09-03 22:01:44 +00:00
Our bank account number is < br >
2015-03-31 12:39:08 +00:00
{% endblocktrans %}
2014-09-05 14:27:30 +00:00
< strong > {{ seller_info.bank_account }}< / strong >
2014-09-03 22:01:44 +00:00
{% endif %}
2014-08-20 18:50:07 +00:00
< / div >
< div id = "questions" >
2015-03-31 12:39:08 +00:00
< span class = "title" > {% trans "QUESTIONS" %}< / span >
2015-05-28 09:43:57 +00:00
{% blocktrans with type=bill.get_type_display.lower email=seller_info.email %}
2015-05-27 14:05:25 +00:00
If you have any question about your < i > {{ type }}< / i > , please
2015-05-28 09:43:57 +00:00
feel free to write us at {{ email }}. We will reply as soon as we get
2014-08-20 18:50:07 +00:00
your message.
2015-03-31 12:39:08 +00:00
{% endblocktrans %}
2014-08-20 18:50:07 +00:00
< / div >
< / div >
< / div >
2014-09-03 22:01:44 +00:00
< / div >
2014-08-20 18:50:07 +00:00
{% endblock %}
{% endblock %}