Files
celtic-life-science/app/pdf/templates/forms/sales_projection.html
Shubhankar45 4e5e95775d --
2026-10-27 12:03:31 +00:00

44 lines
1.7 KiB
HTML

{% extends "forms/_form_base.html" %}
{# Arial throughout, title tucked directly under the company name — as printed. #}
{% block form_styles %}
.company .name { font-size: 20pt; }
h1.title {
margin: 0 0 4mm;
font-family: "Liberation Sans", Arial, "DejaVu Sans", sans-serif;
font-size: 14pt;
}
table.grid th, table.grid td { font-family: "Liberation Sans", Arial, "DejaVu Sans", sans-serif; }
table.grid th { height: 7mm; font-size: 9.5pt; }
table.grid th.sub { height: 6mm; font-size: 8.5pt; }
table.grid td { font-size: 9.5pt; }
table.grid td:nth-child(2) { font-weight: bold; }
table.grid tr.total td { font-weight: bold; }
table.grid tr.total td:nth-child(2) { text-align: right; }
{% endblock %}
{# Two heading rows: CLOSING and PROJECTION each span their QUANTITY and VALUE. #}
{% block form %}
{% set g = grids.main %}
<table class="grid" style="width:{{ g.width }}">
<colgroup>{% for w in g.widths %}<col style="width:{{ w }}">{% endfor %}</colgroup>
<thead>
<tr>
{% for h in g.headers[:3] %}<th rowspan="2">{{ h }}</th>{% endfor %}
<th colspan="2">CLOSING</th>
<th colspan="2">PROJECTION</th>
</tr>
<tr>{% for h in g.headers[3:] %}<th class="sub">{{ h }}</th>{% endfor %}</tr>
</thead>
<tbody>
{% for r in g.rows %}
<tr>{% for c in r.cells %}<td class="{{ g.aligns[loop.index0] }}">{{ c }}</td>{% endfor %}</tr>
{% endfor %}
<tr class="total">
<td></td><td>TOTAL</td><td></td>
{% for t in totals %}<td class="{{ g.aligns[loop.index0 + 3] }}">{{ t }}</td>{% endfor %}
</tr>
</tbody>
</table>
{% endblock %}