diff --git a/templates/customer.html b/templates/customer.html index 8b93ab8..206c75e 100644 --- a/templates/customer.html +++ b/templates/customer.html @@ -1,236 +1,241 @@ - + - - - Fakturaunderlag - Kund {{ customer.customer_number }} - - - -
-
-

Faktura - Kund {{ customer.customer_number }}

-
Period: {{ period }}
+ .card-header { + background: #f0f0f0; + padding: 8px 12px; + font-weight: bold; + border-bottom: 1px solid #ccc; + display: flex; + justify-content: space-between; + } + .card-summary { + padding: 6px 12px; + font-size: 11px; + background: #fafafa; + border-bottom: 1px solid #eee; + } + table { + width: 100%; + border-collapse: collapse; + font-size: 11px; + } + th, + td { + padding: 6px 8px; + text-align: left; + } + th { + background: #f5f5f5; + font-weight: bold; + border-bottom: 1px solid #ccc; + } + .amount, + .volume, + .price { + text-align: right; + } + .card-total { + font-weight: bold; + background: #f9f9f9; + } + .card-total td { + border-top: 1px solid #333; + } + .grand-total { + background: #333; + color: white; + padding: 12px 15px; + font-size: 14px; + font-weight: bold; + text-align: right; + margin-top: 15px; + } + .grand-total span { + font-size: 18px; + margin-left: 20px; + } + + + +
+
+

Fakturaunderlag - Kund {{ customer.customer_number }}

+
Period: {{ period }}
+
+
+
Genererad: {{ generated_date }}
+
-
-
Genererad: {{ generated_date }}
-
-
-
-

Sammanfattning

- - - - - - - - - - - {% for product in customer.summary.products %} - - - - - - - {% endfor %} - - - - - - - - - - - - - - - - - - - -
ProduktVolym (L)Snittpris/LBelopp
{{ product.name }}{{ product.volume }}{{ product.avg_price }} Kr{{ product.amount }} Kr
Avrundningsfel{{ customer.summary.avrundningsfel }} Kr
Öresutjämning{{ customer.summary.oresutjamning }} Kr
Totalt{{ customer.summary.total_volume }}{{ customer.summary.grand_total }} Kr
-
- - {% for card in customer.cards %} -
-
- Kort: {{ card.card_number }} - {{ card.transactions.len() }} transaktioner +
+

Sammanfattning

+ + + + + + + + + + + {% for product in customer.summary.products %} + + + + + + + {% endfor %} + + + + + + + + + + + + + + + + + + + +
ProduktVolym (L)Snittpris/LBelopp
{{ product.name }}{{ product.volume }}{{ product.avg_price }} Kr{{ product.amount }} Kr
Avrundningsfel{{ customer.summary.avrundningsfel }} Kr
Öresutjämning{{ customer.summary.oresutjamning }} Kr
Totalt{{ customer.summary.total_volume }}{{ customer.summary.grand_total }} Kr
-
- Summa: {{ card.total_amount }} Kr | Volym: {{ card.total_volume }} L -
- - - - - - - - - - - - - {% for tx in card.transactions %} - - - - - - - - - {% endfor %} - - - - - - - -
DatumProduktPris/LVolym (L)BeloppKvitto
{{ tx.date }}{{ tx.quality_name }}{{ tx.price }}{{ tx.volume }}{{ tx.amount }}{{ tx.receipt }}
Kortsumma{{ card.total_volume }}{{ card.total_amount }}
-
- {% endfor %} -
- Totalsumma:{{ customer.summary.grand_total }} Kr -
- + {% for card in customer.cards %} +
+
+ Kort: {{ card.card_number }} + {{ card.transactions.len() }} transaktioner +
+
+ Summa: {{ card.total_amount }} Kr | Volym: {{ card.total_volume + }} L +
+ + + + + + + + + + + + + {% for tx in card.transactions %} + + + + + + + + + {% endfor %} + + + + + + + +
DatumProduktPris/LVolym (L)BeloppKvitto
{{ tx.date }}{{ tx.quality_name }}{{ tx.price }}{{ tx.volume }}{{ tx.amount }}{{ tx.receipt }}
Kortsumma{{ card.total_volume }}{{ card.total_amount }}
+
+ {% endfor %} + +
+ Totalsumma:{{ customer.summary.grand_total }} Kr +
+