I need help fine tuning this document. I basically need three things:
- Get rid of the duplicate company information on top of "Client"
- Be able to stamp today's date automatically. I tried using "datetime" package but every time I run the script it collapses.
- Calculate the tax automatically (can that be done in LaTeX?)
PS: the example comes with an external file called "template.lco" Inside that file I found the following:
\ProvidesFile{template.loc}[]
% firstfootvpos has to have more space to the bottom
\@setplength{firstfootvpos}{\paperheight}
\@addtoplength[-]{firstfootvpos}{30mm}
And here's the code for the actual document:
\documentclass[DIN, pagenumber=false, parskip=half,
fromalign=right,
fromphone=true,
fromfax=false,
fromrule=false]{scrlttr2}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{longtable}
\usepackage{eurosym}
\usepackage{datetime}
\LoadLetterOption{template}
\newcommand{\stdlohn}[0]{18 \% }
\renewcommand*{\raggedsignature}{\raggedright}
\setkomavar{fromname}{Company}
\setkomavar{fromphone}{+49 (0) 123 / 1234 1234}
\setkomavar{fromaddress}{Address}
\setkomavar{frombank}{Bank info}
\setkomavar{subject}[]{Service description}
\setkomavar{yourmail}[Code]{BAG-EB-00001}
\setkomavar{date}[Date]{06 July 2015}
\firstfoot{
\parbox[t]{\textwidth}{\footnotesize
\begin{tabular}[t]{l@{}}
\multicolumn{1}{@{}l@{}}{\textbf{Company:}}\\
Info \\
\end{tabular}
\hfill{}
\begin{tabular}[t]{l@{}}
\multicolumn{1}{@{}l@{}}{\textbf{Bank:}}\\
Bank name\\
\end{tabular}
}}
\begin{document}
\begin{letter}{
\textbf{Client}\\
Name\\
}
\opening{\ }
\vspace{-1.9cm}
\begin{longtable}{p{7.8cm}p{1.0cm}p{1cm}p{2.7cm}p{2.5cm}}
\hline
Description & Amount & U & Price & Total\\
\hline
\textbf{Service}\\
Service & 1 & H & USD 60.00 {} & USD 60.00{}\\ \\
\hline\hline
\end{longtable}
\begin{longtable}{p{5.5cm}p{3cm}p{3cm}}
\hline A & \stdlohn Tax & B\\
\hline
USD 6,000.00{} & USD 6,000.00 & \textbf{USD 6,000.00}{}\\
\hline
\hline
\end{longtable}
\end{letter}
\end{document}



datetime. – esdd Jul 07 '15 at 11:23