django-orchestra/orchestra/apps/bills/templates/bills/microspective.html

144 lines
5.3 KiB
HTML
Raw Normal View History

2014-08-20 18:50:07 +00:00
{% extends 'bills/base.html' %}
{% 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">
<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>
{{ seller.zipcode }} - {{ seller.city }}<br>
{{ seller.country }}<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">
{{ bill.get_type_display.capitalize }}<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">
<span class="title">DUE DATE</span><br>
<psan class="value">{{ bill.due_on | default:default_due_date | date }}</span>
2014-08-20 18:50:07 +00:00
</div>
<div id="total">
<span class="title">TOTAL</span><br>
2014-09-03 13:56:02 +00:00
<psan class="value">{{ bill.get_total }} &{{ currency.lower }};</span>
2014-08-20 18:50:07 +00:00
</div>
<div id="bill-date">
2014-08-22 11:28:46 +00:00
<span class="title">{{ bill.get_type_display.upper }} DATE</span><br>
<psan class="value">{{ bill.closed_on | default:now | date }}</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>
{{ buyer.zipcode }} - {{ buyer.city }}<br>
{{ buyer.country }}<br>
2014-08-20 18:50:07 +00:00
</div>
{% endblock %}
{% block content %}
<div id="lines">
<span class="title column-id">id</span>
<span class="title column-description">description</span>
<span class="title column-quantity">hrs/qty</span>
<span class="title column-rate">rate/price</span>
<span class="title column-subtotal">subtotal</span>
<br>
{% for line in lines %}
{% with sublines=line.sublines.all %}
<span class="{% if not sublines %}last {% endif %}column-id">{{ line.id }}</span>
<span class="{% if not sublines %}last {% endif %}column-description">{{ line.description }}</span>
2014-09-26 15:05:20 +00:00
<span class="{% if not sublines %}last {% endif %}column-quantity">{{ line.quantity|default:"&nbsp;" }}</span>
<span class="{% if not sublines %}last {% endif %}column-rate">{% if line.rate %}{{ line.rate }} &{{ currency.lower }};{% else %}&nbsp;{% endif %}</span>
2014-09-26 15:05:20 +00:00
<span class="{% if not sublines %}last {% endif %}column-subtotal">{{ line.subtotal }} &{{ currency.lower }};</span>
2014-08-20 18:50:07 +00:00
<br>
{% for subline in sublines %}
<span class="{% if forloop.last %}last {% endif %}subline column-id">&nbsp;</span>
<span class="{% if forloop.last %}last {% endif %}subline column-description">{{ subline.description }}</span>
<span class="{% if forloop.last %}last {% endif %}subline column-quantity">&nbsp;</span>
<span class="{% if forloop.last %}last {% endif %}subline column-rate">&nbsp;</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>&nbsp;<br>
2014-09-03 13:56:02 +00:00
{% for tax, subtotal in bill.get_subtotals.iteritems %}
<span class="subtotal column-title">subtotal {{ tax }}% VAT</span>
<span class="subtotal column-value">{{ subtotal | first }} &{{ currency.lower }};</span>
<br>
<span class="tax column-title">taxes {{ tax }}% VAT</span>
<span class="tax column-value">{{ subtotal | last }} &{{ currency.lower }};</span>
<br>
{% endfor %}
2014-08-20 18:50:07 +00:00
<span class="total column-title">total</span>
2014-09-03 13:56:02 +00:00
<span class="total column-value">{{ bill.get_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>
<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 %}
<span class="title">COMMENTS</span> {{ bill.comments|linebreaksbr }}
{% endif %}
2014-08-20 18:50:07 +00:00
</div>
</div>
<div id="footer-column-2">
<div id="payment">
<span class="title">PAYMENT</span>
{% if payment.message %}
{{ payment.message | safe }}
{% else %}
You can pay our {{ bill.get_type_display.lower }} by bank transfer. <br>
Please make sure to state your name and the {{ bill.get_type_display.lower}} number.
Our bank account number is <br>
<strong>{{ seller_info.bank_account }}</strong>
{% endif %}
2014-08-20 18:50:07 +00:00
</div>
<div id="questions">
<span class="title">QUESTIONS</span> If you have any question about your {{ bill.get_type_display.lower}}, please
2014-08-20 18:50:07 +00:00
feel free to contact us at your convinience. We will reply as soon as we get
your message.
</div>
</div>
</div>
</div>
2014-08-20 18:50:07 +00:00
{% endblock %}
{% endblock %}