2019-05-01 10:27:03 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Invoice 0001</title>
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700" rel="stylesheet">
|
|
|
|
<style type="text/css">
|
|
|
|
body {
|
|
|
|
background-color: #fff;
|
|
|
|
font-family: 'Roboto', sans-serif;
|
|
|
|
font-size: 1em;
|
|
|
|
|
|
|
|
padding: 2em;
|
|
|
|
}
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
ul li {
|
|
|
|
margin-bottom: 0.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
@page {
|
|
|
|
size: A4;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
div.rhs {
|
|
|
|
float: right;
|
|
|
|
width: 50%;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
div.lhs {
|
|
|
|
float: left;
|
|
|
|
text-align: left;
|
|
|
|
width: 50%;
|
|
|
|
min-height: 35em;
|
|
|
|
}
|
|
|
|
div.metadata {
|
|
|
|
margin-top: 2em;
|
|
|
|
}
|
|
|
|
div.invoicee {
|
|
|
|
margin-top: 9em;
|
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
margin: 0;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
2019-05-18 14:23:58 +00:00
|
|
|
h2 {
|
|
|
|
font-size: 1.2em;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2019-05-01 10:27:03 +00:00
|
|
|
table.items {
|
|
|
|
text-align: right;
|
|
|
|
border-spacing: 0px;
|
|
|
|
border-collapse: collapse;
|
|
|
|
border: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
table.items td,th {
|
|
|
|
border: 1px solid black;
|
|
|
|
}
|
|
|
|
table.items tr:first-child {
|
|
|
|
background-color: #eee;
|
|
|
|
color: #111;
|
|
|
|
padding: 0.8em;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
table.items td {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
table.items td,th {
|
|
|
|
padding: 0.5em 1em 0.5em 1em;
|
|
|
|
}
|
|
|
|
td.lhead {
|
|
|
|
border: 0 !important;
|
|
|
|
text-align: right;
|
|
|
|
text-transform: uppercase;
|
|
|
|
background: rgba(0, 0, 0, 0) !important;
|
|
|
|
}
|
|
|
|
div.bgtext {
|
|
|
|
z-index: -10;
|
|
|
|
position: absolute;
|
|
|
|
top: 140mm;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
div.bgtext div {
|
|
|
|
text-align: center;
|
|
|
|
font-size: 10em;
|
|
|
|
color: #ddd;
|
|
|
|
-webkit-transform: rotate(-45deg);
|
|
|
|
text-transform: uppercase;
|
2021-02-17 19:28:51 +00:00
|
|
|
}
|
|
|
|
div.symbols {
|
|
|
|
padding: 0 0 0.5rem 0.1rem;
|
2019-05-01 10:27:03 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{{ if .Proforma }}
|
|
|
|
<div class="bgtext"><div>Proforma</div></div>
|
|
|
|
{{ end }}
|
|
|
|
<div class="rhs">
|
|
|
|
<div class="invoicer">
|
|
|
|
<ul>
|
|
|
|
{{ range $i, $e := .InvoicerBilling }}
|
|
|
|
{{ if eq $i 0 }}
|
|
|
|
<li><b>{{ $e }}</b></li>
|
|
|
|
{{ else }}
|
|
|
|
<li>{{ $e }}</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if .InvoicerCompanyNumber }}
|
2019-05-01 11:14:32 +00:00
|
|
|
<li>{{ .InvoicerCompanyNumber }}</li>
|
2019-05-01 10:27:03 +00:00
|
|
|
{{ end }}
|
2019-06-07 08:37:22 +00:00
|
|
|
<li><b>Tax Number:</b> {{ .InvoicerVAT }}</li>
|
2019-05-01 10:27:03 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="metadata">
|
|
|
|
<ul>
|
2019-06-07 08:37:22 +00:00
|
|
|
<li><b>Invoice number:</b> {{ .InvoiceNumber }}</li>
|
|
|
|
<li><b>Date:</b> {{ .Date.Format "2006/01/02" }}</li>
|
|
|
|
<li><b>Due date:</b> {{ .DueDate.Format "2006/01/02" }}</li>
|
2019-05-01 10:27:03 +00:00
|
|
|
<li><b>IBAN:</b> {{ .IBAN }}</li>
|
|
|
|
<li><b>SWIFT/BIC:</b> {{ .SWIFT }}</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="lhs">
|
|
|
|
<div class="invoicee">
|
|
|
|
{{ if .Proforma }}
|
2019-06-07 08:37:22 +00:00
|
|
|
<h1>Proforma Invoice</h1>
|
2019-05-01 10:27:03 +00:00
|
|
|
{{ else }}
|
2019-06-07 08:37:22 +00:00
|
|
|
<h1>VAT Invoice</h1>
|
2019-05-01 10:27:03 +00:00
|
|
|
{{ end }}
|
|
|
|
<ul>
|
|
|
|
{{ range $i, $e := .InvoiceeBilling }}
|
|
|
|
{{ if eq $i 0 }}
|
|
|
|
<li><b>{{ $e }}</b></li>
|
|
|
|
{{ else }}
|
|
|
|
<li>{{ $e }}</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if .USCustomer }}
|
2021-05-12 21:05:53 +00:00
|
|
|
<li>{{ .InvoiceeVAT }}</li>
|
|
|
|
<li style="margin-top: 2em;"><b>VAT NP</b> <i>(zero rate)</i></li>
|
2020-05-30 22:12:11 +00:00
|
|
|
{{ else if .InvoiceeVAT }}
|
2019-05-01 11:14:32 +00:00
|
|
|
<li><b>NIP:</b> {{ .InvoiceeVAT }}</li>
|
2019-05-01 10:27:03 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if .ReverseVAT }}
|
2021-05-12 21:05:53 +00:00
|
|
|
<li><b>Obciążenie odwrotne</b> <i>(reverse charge)</ii></li>
|
2019-05-01 10:27:03 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="clear: both; height: 1em;"></div>
|
2021-02-17 19:28:51 +00:00
|
|
|
<div class="symbols">
|
2021-05-12 21:05:53 +00:00
|
|
|
<b>Oznaczenia</b> <i>(JPK symbols)</i>: {{ .Symbols }}
|
2021-02-17 19:28:51 +00:00
|
|
|
</div>
|
2019-05-01 10:27:03 +00:00
|
|
|
<table class="items">
|
|
|
|
<tr>
|
2019-06-20 14:11:07 +00:00
|
|
|
<th style="width: 60%;">Name of goods / service</th>
|
|
|
|
<th>Unit price<br />(net)</th>
|
2019-06-07 08:37:22 +00:00
|
|
|
<th>Qty</th>
|
2019-06-20 14:11:07 +00:00
|
|
|
{{ if not .ReverseVAT }}
|
2019-06-07 08:37:22 +00:00
|
|
|
<th>VAT rate</th>
|
2019-06-20 14:11:07 +00:00
|
|
|
{{ end }}
|
|
|
|
<th>Goods value<br />(net)</th>
|
|
|
|
{{ if not .ReverseVAT }}
|
|
|
|
<th>Goods value<br />(gross)</th>
|
|
|
|
{{ end }}
|
2019-05-01 10:27:03 +00:00
|
|
|
</tr>
|
|
|
|
{{ range .Items }}
|
|
|
|
<tr>
|
|
|
|
<td style="text-align: left;">{{ .Title }}</td>
|
|
|
|
<td>{{ .UnitPrice }}</td>
|
|
|
|
<td>{{ .Qty }}</td>
|
2019-06-20 14:11:07 +00:00
|
|
|
{{ if not $.ReverseVAT }}
|
2019-05-01 10:27:03 +00:00
|
|
|
<td>{{ .VATRate }}</td>
|
2019-06-20 14:11:07 +00:00
|
|
|
{{ end }}
|
2019-05-01 10:27:03 +00:00
|
|
|
<td>{{ .TotalNet }}</td>
|
2019-06-20 14:11:07 +00:00
|
|
|
{{ if not $.ReverseVAT }}
|
2019-05-01 10:27:03 +00:00
|
|
|
<td>{{ .Total }}</td>
|
2019-06-20 14:11:07 +00:00
|
|
|
{{ end }}
|
2019-05-01 10:27:03 +00:00
|
|
|
</tr>
|
|
|
|
{{ end }}
|
2019-06-20 14:11:07 +00:00
|
|
|
{{ if not .ReverseVAT }}
|
2019-05-01 10:27:03 +00:00
|
|
|
<tr>
|
2019-06-07 08:37:22 +00:00
|
|
|
<td colspan="5" class="lhead">Subtotal without VAT</td>
|
2019-05-01 10:27:03 +00:00
|
|
|
<td>{{ .TotalNet }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-06-20 14:11:07 +00:00
|
|
|
<td colspan="5" class="lhead">VAT Total {{ if .USCustomer }}(VAT zero rate){{ end }}</td>
|
2019-05-01 10:27:03 +00:00
|
|
|
<td>{{ .VATTotal }}</td>
|
|
|
|
</tr>
|
2019-06-20 14:11:07 +00:00
|
|
|
{{ end }}
|
2019-05-01 10:27:03 +00:00
|
|
|
<tr>
|
2019-06-20 14:11:07 +00:00
|
|
|
<td colspan="{{ if .ReverseVAT }}3{{ else }}5{{ end }}" class="lhead"><b>Total</b></td>
|
2019-05-01 11:14:32 +00:00
|
|
|
<td><b>{{ .Total }}</b></td>
|
2019-05-01 10:27:03 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|