From 542c76516135a98fb8ed4b302d7ad7cb7478d637 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/ar_transaction.tex | 131 +++++++++++++++++++++++++++++++++++++
 1 file changed, 131 insertions(+)
 create mode 100644 templates/jones/ar_transaction.tex

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

diff --git a/templates/jones/ar_transaction.tex b/templates/jones/ar_transaction.tex
new file mode 100644
index 00000000..f3d88f3d
--- /dev/null
+++ b/templates/jones/ar_transaction.tex
@@ -0,0 +1,131 @@
+\documentclass[10pt,letterpaper,oneside,onecolumn]{scrartcl}
+\usepackage[frame]{xy}
+\usepackage{tabularx}
+\usepackage[latin1]{inputenc}
+\usepackage{graphicx}
+\setlength{\voffset}{0.5cm}
+\setlength{\hoffset}{-1.9cm}
+\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.7cm}
+\setlength{\footskip}{1cm}
+\setlength{\parindent}{0pt}
+\renewcommand{\baselinestretch}{1}
+
+\begin{document}
+
+\pagestyle{myheadings}
+\thispagestyle{empty}
+
+\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
+
+\vspace*{-1.3cm}
+
+\parbox{\textwidth}{%
+  \parbox[b]{.42\textwidth}{%
+    <?lsmb company ?>
+   
+    <?lsmb address ?>
+  }
+  \parbox[b]{.2\textwidth}{
+    \includegraphics[scale=0.3]{ledger-smb}
+  }\hfill
+  \begin{tabular}[b]{rr@{}}
+  Telephone & <?lsmb tel ?>\\
+  Facsimile & <?lsmb fax ?>
+  \end{tabular}
+
+  \rule[1.5em]{\textwidth}{0.5pt}
+}
+
+\centerline{\textbf{A R} \hspace{0.3cm} \textbf{T R A N S A C T I O N}}
+
+\vspace*{0.5cm}
+
+\parbox[t]{.5\textwidth}{
+<?lsmb name ?>
+
+<?lsmb address1 ?>
+
+<?lsmb address2 ?>
+
+<?lsmb city ?> <?lsmb state ?> <?lsmb zipcode ?>
+
+<?lsmb country ?>
+
+\vspace{0.3cm}
+
+<?lsmb if contact ?>
+<?lsmb contact ?>
+<?lsmb end contact ?>
+
+\vspace{0.2cm}
+
+<?lsmb if customerphone ?>
+Tel: <?lsmb customerphone ?>
+<?lsmb end customerphone ?>
+
+<?lsmb if customerfax ?>
+Fax: <?lsmb customerfax ?>
+<?lsmb end customerfax ?>
+
+<?lsmb email ?>
+}
+\hfill
+\begin{tabular}[t]{ll}
+  \textbf{Invoice \#} & <?lsmb invnumber ?> \\
+  \textbf{Date} & <?lsmb invdate ?> \\
+  \textbf{Due} & <?lsmb duedate ?> \\
+  \textbf{Order \#} & <?lsmb ordnumber ?> \\
+  \textbf{Employee} & <?lsmb employee ?> \\
+\end{tabular}
+
+\vspace{1cm}
+
+\begin{tabularx}{.5\textwidth}[t]{@{}llrl@{}}
+<?lsmb foreach amount ?>
+  <?lsmb accno ?> & <?lsmb account ?> & <?lsmb amount ?> & <?lsmb projectnumber ?> \\
+<?lsmb end amount ?>
+
+  \multicolumn{2}{r}{\textbf{Subtotal}} & <?lsmb subtotal ?> & \\
+<?lsmb foreach tax ?>
+  \multicolumn{2}{r}{\textbf{<?lsmb taxdescription ?> @ <?lsmb taxrate ?> \%}} & <?lsmb tax ?> & \\
+<?lsmb end tax ?>
+
+  \multicolumn{2}{r}{\textbf{Total}} & <?lsmb invtotal ?> & \\
+  
+\end{tabularx}
+<?lsmb notes ?>
+
+\vspace{0.3cm}
+
+<?lsmb text_amount ?> ***** <?lsmb decimal ?>/100 <?lsmb currency ?>
+
+\vspace{0.3cm}
+
+<?lsmb if paid ?>
+\begin{tabular}{@{}llllr@{}}
+  \multicolumn{5}{c}{\textbf{Payments}} \\
+  \hline
+  \textbf{Date} & & \textbf{Source} & \textbf{Memo} & \textbf{Amount} \\
+<?lsmb end paid ?>
+<?lsmb foreach payment ?>
+  <?lsmb paymentdate ?> & <?lsmb paymentaccount ?> & <?lsmb paymentsource ?> & <?lsmb paymentmemo ?> & <?lsmb payment ?> \\
+<?lsmb end payment ?>
+<?lsmb if paid ?>
+\end{tabular}
+<?lsmb end paid ?>
+
+\vspace{0.5cm}
+
+<?lsmb foreach tax ?>
+\textbf{\small{<?lsmb taxdescription ?> Registration <?lsmb taxnumber ?>}} \\
+<?lsmb end tax ?>
+  
+\end{document}
+
-- 
cgit v1.2.3

