go/svc/invoice: tiny template fixes

changes/03/3/1
q3k 2019-05-18 16:23:58 +02:00
parent 6586533bb3
commit a103f060a8
1 changed files with 9 additions and 4 deletions

View File

@ -46,6 +46,10 @@ h1 {
margin: 0;
text-transform: uppercase;
}
h2 {
font-size: 1.2em;
margin: 0;
}
table.items {
text-align: right;
border-spacing: 0px;
@ -123,10 +127,11 @@ div.bgtext div {
<div class="lhs">
<div class="invoicee">
{{ if .Proforma }}
<h1>Faktura proforma:</h1>
<h1>Faktura Proforma</h1>
{{ else }}
<h1>Faktura VAT:</h1>
<h1>Faktura VAT</h1>
{{ end }}
<h2>nr. {{ .InvoiceNumber }}</h2>
<ul>
{{ range $i, $e := .InvoiceeBilling }}
{{ if eq $i 0 }}
@ -143,7 +148,7 @@ div.bgtext div {
{{ end }}
{{ if .ReverseVAT }}
<li><b>(reverse charge applies)</b></li>
<li><b>(nie podlega VAT)</b></li>
{{ end }}
</ul>
</div>
@ -173,7 +178,7 @@ div.bgtext div {
<td>{{ .TotalNet }}</td>
</tr>
<tr>
<td colspan="5" class="lhead">VAT{{ if .ReverseVAT }} (reverse charge applies){{ end }} {{ if .USCustomer }}(VAT zero rate){{ end }}</td>
<td colspan="5" class="lhead">VAT{{ if .ReverseVAT }} (nie podlega){{ end }} {{ if .USCustomer }}(nie podlega){{ end }}</td>
<td>{{ .VATTotal }}</td>
</tr>
<tr>