From 9fab65f1081eb4a6602c586cca45533d1ef25e83 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Thu, 8 Jun 2023 12:52:10 +0200 Subject: [PATCH] =?UTF-8?q?Add=20terms=20and=20conditions=20to=20invoice?= =?UTF-8?q?=E2=80=99s=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/static/invoice.css | 7 ++++++- web/template/quotes/view.gohtml | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/web/static/invoice.css b/web/static/invoice.css index 8829767..77c58cf 100644 --- a/web/static/invoice.css +++ b/web/static/invoice.css @@ -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; } diff --git a/web/template/quotes/view.gohtml b/web/template/quotes/view.gohtml index fb59965..9755037 100644 --- a/web/template/quotes/view.gohtml +++ b/web/template/quotes/view.gohtml @@ -54,6 +54,10 @@ {{ .Quotee.City }} ({{ .Quotee.PostalCode}}), {{ .Quotee.Province }}
+ {{ if .TermsAndConditions -}} +

{{(gettext "Terms and Conditions:")}} {{ .TermsAndConditions }}

+ {{- end }} + {{- $columns := 5 | add (len .TaxClasses) | add (boolToInt .HasDiscounts) -}}