From 3673c917e5634db7838b93ac308419ca89b9d709 Mon Sep 17 00:00:00 2001
From: Jonas Smedegaard <dr@jones.dk>
Date: Tue, 2 Dec 2008 17:04:49 +0100
Subject: Add custom templates.

---
 templates/jones/statement.tex | 120 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 120 insertions(+)
 create mode 100644 templates/jones/statement.tex

(limited to 'templates/jones/statement.tex')

diff --git a/templates/jones/statement.tex b/templates/jones/statement.tex
new file mode 100644
index 00000000..2fa73202
--- /dev/null
+++ b/templates/jones/statement.tex
@@ -0,0 +1,120 @@
+\documentclass[a4paper,twoside]{scrartcl}
+\usepackage[frame]{xy}
+\usepackage{tabularx}
+\usepackage[latin1]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[danish]{babel}
+\setlength{\voffset}{0.5cm}
+\setlength{\hoffset}{-2.0cm}
+\setlength{\topmargin}{0cm}
+\setlength{\headheight}{0.5cm}
+\setlength{\headsep}{1cm}
+\setlength{\topskip}{0pt}
+\setlength{\oddsidemargin}{1.0cm}
+\setlength{\evensidemargin}{1.0cm}
+\setlength{\textwidth}{19.2cm}
+\setlength{\textheight}{24.5cm}
+\setlength{\footskip}{1cm}
+\setlength{\parindent}{0pt}
+\renewcommand{\baselinestretch}{1}
+\begin{document}
+
+\newlength{\descrwidth}\setlength{\descrwidth}{10cm}
+
+\newsavebox{\hdr}
+\sbox{\hdr}{
+  \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
+
+  \parbox{\textwidth}{
+    \parbox[b]{12cm}{
+      <?lsmb company ?>
+
+      <?lsmb address ?>}\hfill
+    \begin{tabular}[b]{rr@{}}
+<?lsmb if tel ?>
+    Tlf. & <?lsmb tel ?>\\
+<?lsmb end tel ?>
+<?lsmb if fax ?>
+    Fax & <?lsmb fax ?>\\
+<?lsmb end fax ?>
+<?lsmb if businessnumber ?>
+    CVR-nummer: & <?lsmb businessnumber ?>\\
+<?lsmb end businessnumber ?>
+    \end{tabular}
+
+    \rule[1.5ex]{\textwidth}{0.5pt}
+  }
+}
+
+\fontfamily{cmss}\fontshape{n}\selectfont
+
+\markboth{<?lsmb company ?>\hfill <?lsmb statementdate ?>}{\usebox{\hdr}}
+
+\pagestyle{myheadings}
+%\thispagestyle{empty}     use this with letterhead paper
+
+\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
+
+\vspace*{1.5cm}
+
+\parbox[t]{1cm}{\hfill}
+\parbox[t]{10.5cm}{
+  
+<?lsmb name ?>
+
+<?lsmb address1 ?>
+
+<?lsmb if address2 ?>
+<?lsmb address2 ?>
+<?lsmb end address2 ?>
+
+<?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
+
+<?lsmb if country ?>
+<?lsmb country ?>
+<?lsmb end country ?>
+
+}
+\parbox[t]{7.5cm}{
+<?lsmb if customerphone ?>
+Telefon: <?lsmb customerphone ?>
+<?lsmb end customerphone ?>
+
+<?lsmb if customerfax ?>
+Fax: <?lsmb customerfax ?>
+<?lsmb end customerfax ?>
+
+<?lsmb email ?>
+}
+\hfill
+
+\vspace{1cm}
+
+\textbf{U D E S T Å E N D E R} \hfill \textbf{<?lsmb statementdate ?>}
+
+\vspace{2cm}
+
+\begin{tabular*}{\textwidth}{@{}l@{\extracolsep\fill}ccrrrr@{}}
+  \textbf{Fakturanr.} & \textbf{Dato} & \textbf{Forfald} &
+  \textbf{Nuværende} & \textbf{30} & \textbf{60} & \textbf{90+} \\
+<?lsmb foreach invnumber ?>
+  <?lsmb invnumber ?> & <?lsmb invdate ?> & <?lsmb duedate ?> &
+  <?lsmb c0 ?> & <?lsmb c30 ?> & <?lsmb c60 ?> & <?lsmb c90 ?> \\
+<?lsmb end invnumber ?>
+\textbf{Subtotal} & & & <?lsmb c0total ?> & <?lsmb c30total ?> & <?lsmb c60total ?> & <?lsmb c90total ?>
+\end{tabular*}
+\rule{\textwidth}{1pt}
+
+\vspace{1cm}
+
+\hfill
+\begin{tabularx}{7cm}{Xr@{}}
+  \textbf{Samlet udestående} & <?lsmb total ?>
+\end{tabularx}
+
+\vfill
+
+Indbetaling bedes ske til Merkur Andelskasse på konto 8401-1036773.
+
+\end{document}
+
-- 
cgit v1.2.3

