ComptaInde/billing/templates/contract/detail.html

67 lines
3.5 KiB
HTML
Raw Normal View History

2024-06-16 11:07:59 +02:00
{% extends "base.html" %}
{% block content %}
<div id="page" class=" sidebar_right">
<div class="container">
<div id="frame2">
<div id="content">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<h1>{{ contract.name }}</h1>
<h4 class="text-muted">{{ contract.client }}</h4>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-10 col-md-offset-1">
{% if prestations_list %}
<table class="table table-striped table-bordered table-condensed">
<thead>
<th>Date</th>
<th>Prestation</th>
<th class="centered">Quantité</th>
<th class="centered">Prix u.</th>
<th class="centered">Total (htva)</th>
<th class="centered">Total (tvac)</th>
</thead>
{% for prestation in prestations_list %}
<tr>
<td>{{ prestation.date|date:"d-m-Y" }}</td>
<td>{{ prestation.label }}</td>
<td class="push-right">{{ prestation.unit }}</td>
<td class="push-right">{{ prestation.unit_price }}</td>
<td class="push-right">{{ prestation.total_amount_htva }} €</td>
<td class="push-right">{{ prestation.total_amount_tvac }} €</td>
</tr>
{% endfor %}
<tr>
<td colspan="4" class="push-right">Total (sans réduction) :</td>
<td class="push-right"><b>{{ total_without_discount_htva|floatformat:2 }} €</b></td>
<td class="push-right"><b>{{ total_without_discount_tvac|floatformat:2 }} €</b></td>
</tr>
{% for discount in contract.discounts.all %}
<tr>
<td colspan="4">{{ discount.label }} (-{{ discount.quantity }}{{ discount.get_unit_display }})</td>
<td class="push-right">-{{ discount.amount_htva|floatformat:2 }} €</td>
<td class="push-right">-{{ discount.amount_tvac|floatformat:2 }} €</td>
</tr>
{% endfor %}
<tr>
<td colspan="4" class="push-right"><b>Total :</b></td>
<td class="push-right"><b>{{ total_with_discount_htva|floatformat:2 }} €</b></td>
<td class="push-right"><b>{{ total_with_discount_tvac|floatformat:2 }} €</b></td>
</tr>
</table>
<p class="right">
<a href="{% url 'contract_export' contract.id %}" class="btn btn-default btn-primary" role="button">Facture PDF</a>
</p>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}