Files
rusty-petroleum/templates/index.html
Jakob 809f5d2a58 Add Kr currency unit and period display
- Show Kr after all amounts and prices
- Replace batch reference with period (first-last date)
- Same period shown on all customer invoices
2026-03-23 10:51:43 +01:00

88 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<title>Fakturaöversikt</title>
<style>
@page {
size: A4;
margin: 15mm;
}
* {
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
font-size: 12px;
margin: 0;
padding: 20px;
background: white;
}
@media print {
body { padding: 0; }
}
h1 {
margin: 0 0 15px 0;
font-size: 18px;
border-bottom: 2px solid #333;
padding-bottom: 10px;
}
.period {
margin-bottom: 15px;
font-size: 11px;
color: #666;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 11px;
}
th, td {
padding: 8px 10px;
text-align: left;
border: 1px solid #ccc;
}
th {
background: #f0f0f0;
font-weight: bold;
}
tr:nth-child(even) {
background: #fafafa;
}
a {
color: #000;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<h1>Fakturaöversikt</h1>
<div class="period">
<strong>Period:</strong> {{ period }}
</div>
<table>
<thead>
<tr>
<th>Kundnummer</th>
<th>Kort</th>
<th>Faktura</th>
</tr>
</thead>
<tbody>
{% for (num, card_count) in customers %}
<tr>
<td>{{ num }}</td>
<td>{{ card_count }}</td>
<td><a href="customer_{{ num }}.html">Visa</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</body>
</html>