|
|
|
|
@ -2,19 +2,23 @@ |
|
|
|
|
|
|
|
|
|
<html> |
|
|
|
|
<head> |
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
|
|
|
|
|
|
|
|
|
<style type="text/css"> |
|
|
|
|
@page { size: a4 portrait; margin: 1.5cm; } |
|
|
|
|
@font-face { font-family: Arial; src: url("{% fonts_root %}arial.ttf"); } |
|
|
|
|
@font-face { font-family: Arial; src: url("{% fonts_root %}arialbd.ttf"); font-weight: bold; } |
|
|
|
|
|
|
|
|
|
body { font-family: Arial; font-size: 8pt; line-height: 140%; } |
|
|
|
|
body { font-family: Arial, sans-serif; font-size: 8pt; line-height: 140%; } |
|
|
|
|
|
|
|
|
|
table { border-collapse: collapse; padding-top: 0.5ex; line-height: 140%; } |
|
|
|
|
table tr { padding-left: 0.5ex; padding-right: 0.5ex; vertical-align: bottom; } |
|
|
|
|
table tr td { vertical-align: bottom; } |
|
|
|
|
table .row { text-align: right; } |
|
|
|
|
td { |
|
|
|
|
padding-left: 2px; |
|
|
|
|
padding-right: 2px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#header { padding-left: 1ex; font-weight: bold; } |
|
|
|
|
#content_header { margin-top: 1ex; } |
|
|
|
|
@ -37,7 +41,7 @@ |
|
|
|
|
{% if profile.logo %} |
|
|
|
|
<tr class=""> |
|
|
|
|
<td width="20%"> |
|
|
|
|
{% if profile.logo %}<img src="{{ profile.logo.path }}" />{% endif %} |
|
|
|
|
{% if profile.logo %}<img src="{{ profile.logo.path }}">{% endif %} |
|
|
|
|
</td> |
|
|
|
|
<td width="80%"> |
|
|
|
|
{% else %} |
|
|
|
|
@ -85,7 +89,7 @@ |
|
|
|
|
<div id="header_2"> |
|
|
|
|
<br /><br /> |
|
|
|
|
{{ obj.doc_text }} |
|
|
|
|
<center><h1>СЧЕТ № {{ obj.doc_num }} от {{ obj.doc_date|date:"d.m.Y" }}</h1></center> |
|
|
|
|
<h1 class="center">СЧЕТ № {{ obj.doc_num }} от {{ obj.doc_date|date:"d.m.Y" }}</h1> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="content_middle"> |
|
|
|
|
@ -106,12 +110,12 @@ |
|
|
|
|
|
|
|
|
|
{% for item in obj_items %} |
|
|
|
|
<tr class="row borders"> |
|
|
|
|
<td>{{ forloop.counter }}</td> |
|
|
|
|
<td align="right">{{ forloop.counter }}</td> |
|
|
|
|
<td align="left">{{ item.name }}</td> |
|
|
|
|
<td align="center">{{ item.units }}</td> |
|
|
|
|
<td>{{ item.qty|floatformat:"-3" }}</td> |
|
|
|
|
<td>{{ item.price }}</td> |
|
|
|
|
<td>{{ item.total_price }}</td> |
|
|
|
|
<td align="right">{{ item.qty|floatformat:"-3" }}</td> |
|
|
|
|
<td align="right">{{ item.price }}</td> |
|
|
|
|
<td align="right">{{ item.total_price }}</td> |
|
|
|
|
</tr> |
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
@ -119,14 +123,14 @@ |
|
|
|
|
|
|
|
|
|
<tr class="row no_borders"> |
|
|
|
|
<td class="top_border" colspan="5"><b>Итого:</b></td> |
|
|
|
|
<td class="borders"><b>{{ obj.sum_total_price|floatformat:2 }}</b></td> |
|
|
|
|
<td class="borders" align="right"><b>{{ obj.sum_total_price|floatformat:2 }}</b></td> |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
<tr class="row no_borders"> |
|
|
|
|
<td colspan="5"> |
|
|
|
|
<b>{{ obj.nds_itogo_text }}</b>: |
|
|
|
|
</td> |
|
|
|
|
<td class="borders"> |
|
|
|
|
<td class="borders" align="right"> |
|
|
|
|
<b> |
|
|
|
|
{{ obj.sum_total_nds|floatformat:2 }} |
|
|
|
|
</b> |
|
|
|
|
@ -135,7 +139,7 @@ |
|
|
|
|
|
|
|
|
|
<tr class="row no_borders"> |
|
|
|
|
<td colspan="5"><b>Всего к оплате:</b></td> |
|
|
|
|
<td class="borders"><b>{{ obj.sum_full_total_price|floatformat:2 }}</b></td> |
|
|
|
|
<td class="borders" align="right"><b>{{ obj.sum_full_total_price|floatformat:2 }}</b></td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
|