From c89d5ee9922cafa39f50b65080995bc51dda0536 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/macronald/ar_transaction.tex | 118 +++++++++++++++++++++++++++++++++
 1 file changed, 118 insertions(+)
 create mode 100644 templates/macronald/ar_transaction.tex

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

diff --git a/templates/macronald/ar_transaction.tex b/templates/macronald/ar_transaction.tex
new file mode 100644
index 00000000..8be73537
--- /dev/null
+++ b/templates/macronald/ar_transaction.tex
@@ -0,0 +1,118 @@
+\documentclass{scrartcl}
+\usepackage[latin1]{inputenc}
+\usepackage{tabularx}
+\usepackage[letterpaper,top=2cm,bottom=1.5cm,left=1.1cm,right=1.5cm]{geometry}
+\usepackage{graphicx}
+\setlength{\parindent}{0pt}
+
+\begin{document}
+
+\pagestyle{myheadings}
+\thispagestyle{empty}
+
+\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
+
+<?lsmb include letterhead.tex ?>
+
+\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 if state ?>
+\hspace{-0.1cm}, <?lsmb state ?>
+<?lsmb end state ?>
+<?lsmb zipcode ?>
+
+<?lsmb country ?>
+
+\vspace{0.3cm}
+
+<?lsmb if contact ?>
+<?lsmb contact ?>
+\vspace{0.2cm}
+<?lsmb end contact ?>
+
+<?lsmb if customerphone ?>
+Tel: <?lsmb customerphone ?>
+<?lsmb end customerphone ?>
+
+<?lsmb if customerfax ?>
+Fax: <?lsmb customerfax ?>
+<?lsmb end customerfax ?>
+
+<?lsmb email ?>
+
+<?lsmb if customertaxnumber ?>
+Tax Number: <?lsmb customertaxnumber ?>
+<?lsmb end customertaxnumber ?>
+}
+\hfill
+\begin{tabular}[t]{ll}
+  \textbf{Invoice \#} & <?lsmb invnumber ?> \\
+  \textbf{Date} & <?lsmb invdate ?> \\
+  \textbf{Due} & <?lsmb duedate ?> \\
+  <?lsmb if ponumber ?>
+    \textbf{PO \#} & <?lsmb ponumber ?> \\
+  <?lsmb end ponumber ?>
+  <?lsmb if ordnumber ?>
+    \textbf{Order \#} & <?lsmb ordnumber ?> \\
+  <?lsmb end ordnumber ?>
+  \textbf{Employee} & <?lsmb employee ?> \\
+\end{tabular}
+
+\vspace{1cm}
+
+\begin{tabularx}{\textwidth}[t]{@{}llrX@{\hspace{1cm}}l@{}}
+<?lsmb foreach amount ?>
+  <?lsmb accno ?> & <?lsmb account ?> & <?lsmb amount ?> & <?lsmb description ?> & <?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}
+
+\vspace{0.3cm}
+
+<?lsmb text_amount ?> ***** <?lsmb decimal ?>/100 <?lsmb currency ?>
+
+<?lsmb if notes ?>
+\vspace{0.3cm}
+<?lsmb notes ?>
+<?lsmb end notes ?>
+
+\vspace{0.3cm}
+
+<?lsmb if paid_1 ?>
+\begin{tabular}{@{}lllr@{}}
+  \multicolumn{5}{c}{\textbf{Payments}} \\
+  \hline
+  \textbf{Date} & & \textbf{Source} & \textbf{Amount} \\
+<?lsmb end paid_1 ?>
+<?lsmb foreach payment ?>
+  <?lsmb paymentdate ?> & <?lsmb paymentaccount ?> & <?lsmb paymentsource ?> & <?lsmb payment ?> \\
+<?lsmb end payment ?>
+<?lsmb if paid_1 ?>
+\end{tabular}
+<?lsmb end paid_1 ?>
+
+\vspace{0.5cm}
+
+<?lsmb foreach tax ?>
+\textbf{\scriptsize <?lsmb taxdescription ?> Registration <?lsmb taxnumber ?>} \\
+<?lsmb end tax ?>
+  
+\end{document}
+
-- 
cgit v1.2.3

