Add terms and conditions to invoice’s view

This commit is contained in:
jordi fita mas 2023-06-08 12:52:10 +02:00
parent ba6f51ac5d
commit 9fab65f108
2 changed files with 10 additions and 1 deletions

View File

@ -55,11 +55,16 @@
text-align: right;
}
.invoice .notes, .invoice .payment-instructions {
.invoice .notes, .invoice .payment-instructions, .invoice .terms_and_conditions {
white-space: pre-line;
text-align: left;
}
.invoice .terms_and_conditions {
text-transform: uppercase;
font-weight: bold;
}
.invoice .notes + .payment-instructions {
margin-top: 5rem;
}

View File

@ -54,6 +54,10 @@
{{ .Quotee.City }} ({{ .Quotee.PostalCode}}), {{ .Quotee.Province }}<br>
</address>
{{ if .TermsAndConditions -}}
<p class="terms_and_conditions">{{(gettext "Terms and Conditions:")}} {{ .TermsAndConditions }}</p>
{{- end }}
{{- $columns := 5 | add (len .TaxClasses) | add (boolToInt .HasDiscounts) -}}
<table>
<thead>