Erweiterungen
This commit is contained in:
259
src/main/resources/templates/invoice-template.html
Normal file
259
src/main/resources/templates/invoice-template.html
Normal file
@@ -0,0 +1,259 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta content="application/xhtml+xml; charset=utf-8" http-equiv="Content-Type"/>
|
||||
<title>Rechnung {{invoiceNumber}}</title>
|
||||
<style type="text/css">
|
||||
@page {
|
||||
size: A4;
|
||||
margin: 1.5cm 1cm 1.5cm 2cm;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 12pt;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 2px solid #1b12b9;
|
||||
max-width: 21.001cm;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.header {
|
||||
position: absolute;
|
||||
top: 1.5cm;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.company-name {
|
||||
font-family: Verdana;
|
||||
font-size: 24pt;
|
||||
color: #1b12b9;
|
||||
text-align: center;
|
||||
margin-left: 14cm;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.company-subtitle {
|
||||
font-family: Verdana;
|
||||
font-size: 9pt;
|
||||
color: #1b12b9;
|
||||
text-align: center;
|
||||
margin-left: 14cm;
|
||||
margin-top: 0.2cm;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
border-top: 2px solid #1b12b9;
|
||||
width: 27cm;
|
||||
position: absolute;
|
||||
margin-top: 0cm;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.recipient-box {
|
||||
height: 4.5cm;
|
||||
width: 8.999cm;
|
||||
padding: 0;
|
||||
float: left;
|
||||
left: 0cm;
|
||||
margin-top: 5.5cm;
|
||||
}
|
||||
|
||||
.sender-line {
|
||||
font-size: 8pt;
|
||||
line-height: 100%;
|
||||
margin-bottom: 0.106cm;
|
||||
margin-top: 0cm;
|
||||
font-family: Arial;
|
||||
}
|
||||
|
||||
.recipient-content {
|
||||
font-size: 12pt;
|
||||
line-height: 100%;
|
||||
margin-bottom: 0cm;
|
||||
margin-top: 0cm;
|
||||
font-family: Arial;
|
||||
}
|
||||
|
||||
.company-address {
|
||||
width: 5.701cm;
|
||||
padding: 0;
|
||||
float: right;
|
||||
margin-left: 14.25cm;
|
||||
text-align: left;
|
||||
top: 4cm;
|
||||
min-height: 3cm;
|
||||
font-size: 10pt;
|
||||
font-family: Arial;
|
||||
line-height: 100%;
|
||||
}
|
||||
|
||||
.contact-info {
|
||||
position: relative;
|
||||
left: 110px;
|
||||
margin-top: -270px;
|
||||
font-size: 8pt;
|
||||
line-height: 120%;
|
||||
font-family: Arial;
|
||||
}
|
||||
|
||||
.invoice-date {
|
||||
float: right;
|
||||
margin-right: 150px;
|
||||
font-size: 8pt;
|
||||
line-height: 120%;
|
||||
font-family: Arial;
|
||||
}
|
||||
|
||||
.subject {
|
||||
font-size: 12pt;
|
||||
line-height: 120%;
|
||||
margin-bottom: 0.64cm;
|
||||
margin-top: 100px;
|
||||
font-family: Arial;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.text-body {
|
||||
font-size: 12pt;
|
||||
font-family: Arial;
|
||||
margin-top: 0cm;
|
||||
margin-bottom: 0.212cm;
|
||||
line-height: 120%;
|
||||
}
|
||||
|
||||
.invoice-table {
|
||||
width: 18cm;
|
||||
margin-top: 0cm;
|
||||
margin-bottom: 0.635cm;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.table-header {
|
||||
background-color: #e6e6e6;
|
||||
padding: 0.097cm;
|
||||
border-left: 0.018cm solid #808080;
|
||||
font-size: 8pt;
|
||||
font-family: Arial;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.table-cell {
|
||||
padding: 0.097cm;
|
||||
border-left: 0.018cm solid #808080;
|
||||
vertical-align: top;
|
||||
font-size: 12pt;
|
||||
font-family: Arial;
|
||||
}
|
||||
|
||||
.table-cell-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.table-cell-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.summary-row {
|
||||
background-color: #e6e6e6;
|
||||
}
|
||||
|
||||
.footer-text {
|
||||
text-align: center;
|
||||
font-size: 8pt;
|
||||
font-family: Arial;
|
||||
margin-top: 2cm;
|
||||
}
|
||||
|
||||
.clear {
|
||||
clear: both;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<p class="company-name">
|
||||
<b>{{companyName}}</b>
|
||||
</p>
|
||||
<hr>
|
||||
<p class="company-subtitle">
|
||||
<b>{{companySubtitle}}</b>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="recipient-box">
|
||||
<p class="sender-line">{{senderLine}}</p>
|
||||
<p class="recipient-content">{{recipientName}}</p>
|
||||
<p class="recipient-content">{{recipientDepartment}}</p>
|
||||
<p class="recipient-content">{{recipientStreet}}</p>
|
||||
<p class="recipient-content">{{recipientCity}}</p>
|
||||
</div>
|
||||
|
||||
<div class="company-address">
|
||||
<p>{{companyStreet}}</p>
|
||||
<p>{{companyCity}}</p>
|
||||
<p> </p>
|
||||
<p>Tel.: {{companyPhone}}</p>
|
||||
<p>{{companyWebsite}}</p>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<p class="contact-info">
|
||||
Fax
|
||||
<span style="margin-left: 60px">eMail</span>
|
||||
<br/>
|
||||
{{companyFax}}
|
||||
<span>{{companyEmail}}</span>
|
||||
</p>
|
||||
|
||||
<p class="invoice-date">
|
||||
<span>Datum<br></span>
|
||||
<span>{{invoiceDate}}</span>
|
||||
</p>
|
||||
|
||||
<p class="subject">Rechnung {{invoiceNumber}}</p>
|
||||
|
||||
<p class="text-body">{{invoiceText}}</p>
|
||||
|
||||
<table class="invoice-table">
|
||||
<tr>
|
||||
<td class="table-header" style="width:2cm;">Menge</td>
|
||||
<td class="table-header" style="width:9.999cm;">Bezeichnung</td>
|
||||
<td class="table-header" style="width:3cm;">Einzelpreis</td>
|
||||
<td class="table-header" style="width:3cm;">Gesamt</td>
|
||||
</tr>
|
||||
{{invoiceItems}}
|
||||
<tr>
|
||||
<td class="table-cell" style="width:2cm;"> </td>
|
||||
<td class="table-cell" style="width:9.999cm;"> </td>
|
||||
<td class="table-header" style="width:3cm;">Nettobetrag</td>
|
||||
<td class="table-cell summary-row table-cell-right" style="width:3cm;">{{netAmount}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="table-cell" style="width:2cm;"> </td>
|
||||
<td class="table-cell" style="width:9.999cm;"> </td>
|
||||
<td class="table-cell table-cell-right" style="width:3cm;">+ {{vatRate}}% MwSt.</td>
|
||||
<td class="table-cell table-cell-right" style="width:3cm;">{{vatAmount}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="table-cell" style="width:2cm;"> </td>
|
||||
<td class="table-cell" style="width:9.999cm;"> </td>
|
||||
<td class="table-header" style="width:3cm;">Endbetrag</td>
|
||||
<td class="table-cell summary-row table-cell-right" style="width:3cm;">{{totalAmount}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<p class="text-body">{{paymentTerms}}</p>
|
||||
<br><br><br>
|
||||
|
||||
<p class="footer-text">
|
||||
<span>{{footerText}}</span>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user