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

106 lines
5.0 KiB
HTML

{% extends "forms/_form_base.html" %}
{% from "forms/_macros.html" import letterhead %}
{% block page_box %}size: A4 landscape; margin: 7mm 11mm;{% endblock %}
{% block form_styles %}
body { font-size: 10pt; }
.company .name { font-size: 24pt; }
.company .name { line-height: 1.05; }
.company .line { font-size: 9pt; line-height: 1.2; font-style: italic; }
h1.title { margin: 2mm 0 2mm; font-size: 15pt; letter-spacing: 1.5pt; font-style: italic; text-decoration: none; text-align: left; }
h1.title .ln { min-width: 34mm; font-size: 10.5pt; letter-spacing: 0; font-style: normal; }
table.who { width: 100%; border-collapse: collapse; margin: 1.5mm 0 0; }
table.who td { padding: 0; font-size: 10pt; font-style: italic; font-weight: bold; white-space: nowrap; }
table.who .ln { min-width: 52mm; font-style: normal; font-weight: normal; }
table.who .ln.short { min-width: 30mm; }
table.grid th, table.grid td { padding: 0 .9mm; }
table.grid th { height: 5mm; font-size: 9pt; font-weight: normal; }
table.grid thead tr:first-child th { font-weight: bold; }
table.grid td { height: 4.2mm; font-size: 9pt; overflow-wrap: normal; white-space: nowrap; overflow: hidden; }
table.grid tr.total td { font-weight: bold; }
table.grid td.no { font-size: 8pt; }
table.foot { width: 100%; margin-top: 2mm; border-collapse: collapse; page-break-inside: avoid; }
table.foot td { vertical-align: top; padding: 0 2mm 0 0; font-size: 9pt; }
.box { border: .7pt solid #000; padding: 1mm 2mm; }
.box .office { text-align: center; font-style: italic; font-weight: bold; letter-spacing: 1.5pt; margin-bottom: 1mm; }
.box .ln { min-width: 34mm; text-align: left; padding-left: 1mm; }
.line-row { margin: 1.2mm 0; white-space: nowrap; }
.status div { margin: .3mm 0; white-space: nowrap; }
.status .ln { min-width: 18mm; height: 3.8mm; }
{% endblock %}
{% block body %}
{{ letterhead(full_letterhead) }}
<table class="who">
<tr>
<td>Name <span class="ln">{{ meta_rows[0][0][1] }}</span></td>
<td>Designation <span class="ln">{{ meta_rows[0][1][1] }}</span></td>
<td>H.Q. <span class="ln short">{{ meta_rows[1][0][1] }}</span></td>
<td>Date <span class="ln short"></span></td>
</tr>
</table>
<h1 class="title">Expenses Statement from Dt. <span class="ln">{{ period_from }}</span> to <span class="ln">{{ period_to }}</span></h1>
{% 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>
<th rowspan="2"></th>
<th rowspan="2">DATE</th>
<th colspan="2">Place Of Visit</th>
<th colspan="2">Fare</th>
<th colspan="3">Daily Allowance</th>
<th colspan="2">Postage</th>
<th colspan="2">Other Expence</th>
<th colspan="2">Total</th>
<th rowspan="2">Business Achived</th>
</tr>
<tr>
{% for h in g.headers[2:-1] %}<th>{{ h }}</th>{% endfor %}
</tr>
</thead>
<tbody>
{% for r in g.rows %}
<tr>{% for c in r.cells %}<td class="{{ g.aligns[loop.index0] }}{% if loop.first %} no{% endif %}">{{ c }}</td>{% endfor %}</tr>
{% endfor %}
<tr class="total">
<td colspan="4" class="c">TOTAL</td>
<td class="r">{{ sums.fare_rs }}</td><td class="c">{{ sums.fare_p }}</td>
<td class="r">{{ sums.da_hq }}</td><td class="r">{{ sums.da_ex }}</td><td class="r">{{ sums.da_out }}</td>
<td class="r">{{ sums.postage_rs }}</td><td class="c">{{ sums.postage_p }}</td>
<td class="r">{{ sums.other_expense_rs }}</td><td class="c">{{ sums.other_expense_p }}</td>
<td class="r">{{ sums.total_rs }}</td><td class="c">{{ sums.total_p }}</td>
<td></td>
</tr>
</tbody>
</table>
<table class="foot">
<tr>
<td style="width:46%">
<div class="box">
<div class="office">For Office Use Only</div>
<div class="line-row">Amount Claimed <span class="ln">{{ sums.claimed }}</span> &nbsp; Amt. Passed <span class="ln"></span></div>
<div class="line-row">Deduction / Addition with reason <span class="ln" style="min-width:60mm"></span></div>
</div>
</td>
<td style="width:26%">
<div class="box status">
<div class="office">Report Status</div>
<div>Daily Report :- <span class="ln"></span></div>
<div>Stock and Sale Statement :- <span class="ln"></span></div>
<div>Weekly Report :- <span class="ln"></span></div>
<div>Monthly Apprasal :- <span class="ln"></span></div>
</div>
</td>
<td style="width:28%">
<div class="line-row">Signature :- <span class="ln">{{ approval.mr_name }}</span></div>
<div class="line-row">Checked by :- <span class="ln">{% if approval.value != "PENDING" %}{{ approval.value }}{% endif %}</span></div>
<div class="line-row">DATE :- <span class="ln">{{ approval.when }}</span></div>
</td>
</tr>
</table>
{% endblock %}