Created
August 2, 2014 16:42
-
-
Save tristancollins/feb8d9797bcee56ae31a to your computer and use it in GitHub Desktop.
Latex invoice template or VAT-registered consultants
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[11pt,a4paper]{article} | |
\usepackage{datetime} | |
\usepackage{fp} | |
\usepackage{booktabs} | |
\usepackage{ragged2e} | |
\usepackage{longtable} | |
\usepackage{hhline} | |
\newdateformat{mydate}{\ordinal{DAY} \monthname[\THEMONTH] \THEYEAR} | |
%\usepackage[utf8x]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} | |
\usepackage{marvosym} | |
\usepackage{ifpdf} | |
\ifpdf | |
\usepackage[pdftex]{graphicx} | |
\else | |
\usepackage[dvips]{graphicx}\fi | |
\pagestyle{empty} | |
%\usepackage{invoice} | |
%\usepackage[scale=0.8]{geometry} | |
\usepackage[margin=1in, top=1in, bottom=1in]{geometry} | |
\setlength{\parindent}{0pt} | |
\addtolength{\parskip}{5pt} | |
\def\firstname{FIRSTNAME} | |
\def\familyname{LASTNAME} | |
\def\FileAuthor{\firstname \familyname} | |
\def\FileTitle{XXXX Invoice} | |
\def\FileSubject{XXXX Invoice} | |
\def\FileKeyWords{XXXX Invoice} | |
\newcounter{cnt} | |
\setcounter{cnt}{0} | |
\def\inc{\stepcounter{cnt}\thecnt} | |
\gdef\TotalAct{0} % Activity total | |
\gdef\TotalExp{0} % Expense total | |
\gdef\TotalVAT{0} % VAT total | |
\gdef\TotalGrand{0} % Grand total | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ACTIVITIES | |
\newcommand{\activity}[3]{% | |
#1   &\FPmul\temp{#2}{#3}\FPround\temp{\temp}{2}\temp % #2 x #3, rounded to 2 decimal places and stored as \temp | |
%% Totalize | |
\FPadd\total{\TotalAct}{\temp}% Add \temp to \total | |
\FPround\total{\total}{2}% Round \total to 2 decimal places | |
\global\let\TotalAct\total% Sets \TotalHT = \total | |
\\ } | |
\newcommand{\totalttc}{ | |
\TotalAct } | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EXPENSES | |
\newcommand{\expense}[2]{% | |
#1 & & &\FPmul\temptwo{1}{#2}\FPround\temptwo{\temptwo}{2}\temptwo % #2 x #3, rounded to 2 decimal places and stored as \temp | |
%% Totalize | |
\FPadd\totaltwo{\TotalExp}{\temptwo}% Add \temp to \total | |
\FPround\totaltwo{\totaltwo}{2}% Round \total to 2 decimal places | |
\global\let\TotalExp\totaltwo% Sets \TotalHT = \total | |
\\ } | |
\newcommand{\totalttctwo}{ | |
\TotalExp } | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VAT | |
\newcommand{\VAT}{% | |
%VAT (20\%) &&&\FPadd\tempthree{\totalttc}{\totalttctwo}\FPround\tempthree{\tempthree}{2}\tempthree % #2 x #3, rounded to 2 decimal places and stored as \temp | |
VAT (20\%) &&&\FPadd\tempthree{\totalttc}{\totalttctwo}\FPmul\tempthree{\tempthree}{0.2}\FPround\tempthree{\tempthree}{2}\tempthree % #2 x #3, rounded to 2 decimal places and stored as \temp | |
%% Totalize | |
\FPadd\totalthree{\TotalVAT}{\tempthree}% Add \temp to \total | |
\FPround\totalthree{\totalthree}{2}% Round \total to 2 decimal places | |
\global\let\TotalVAT\totalthree% Sets \TotalHT = \total | |
\\ } | |
\newcommand{\totalttcthree}{ | |
\TotalVAT } | |
\begin{document} | |
\sffamily % for use with a resume using sans serif fonts; | |
%\rmfamily % for use with a resume using serif fonts; | |
\hfill% | |
%%%%%%%%%%% FROM ADDRESS | |
\begin{minipage}[t]{.6\textwidth} | |
\raggedleft% | |
{\bfseries Company Name}\\[.35ex] | |
\small\itshape% | |
Address 1\\ | |
Address 2, POSTCODE\\[.35ex] | |
\Telefon~PHONE NUMBER\\ | |
\Letter~{EMAIL ADDRESS} | |
\end{minipage}\\[1em] | |
%%%%%%%%%%% TO ADDRESS | |
\begin{minipage}[t]{.4\textwidth} | |
\raggedright% | |
{\bfseries Invoiced Company}\\[.35ex] | |
\small\itshape% | |
Address 1\\ Address 2 \\ Address 3, POSTCODE | |
\end{minipage}\\[1em] | |
%%%%%%%%%% INVOICE NUMBER | |
\begin{minipage}[t]{.4\textwidth} | |
\bfseries Invoice Number: {\texttt{XXX0000}} | |
\end{minipage} | |
% | |
%\hfill % US style | |
\\[1em] % UK style | |
\begin{minipage}[t]{.4\textwidth} | |
%\raggedleft % US style | |
%\mydate\today | |
\formatdate{19}{8}{2013} | |
\end{minipage}\\[1em] | |
%\raggedright | |
Dear XXXXX,\\[0.75em] | |
% | |
Please find costs for consultancy services provided for the period 1\textsuperscript{st} August to 19\textsuperscript{th} August 2013. | |
%%%% INVOICE PART | |
\begin{longtable}{p{8cm}rrr} | |
%\toprule | |
\multicolumn{4}{c}{\textbf{Project Name}}\\ | |
\rule{0pt}{4ex}{\bfseries Activity} & Rate & Qty & Amount (\textsterling)\\ | |
\midrule | |
%%%% PUT YOUR DAYS WORKED AND RATE HERE | |
\activity{Activity 1}{250.00}{12} | |
\activity{Activity 2}{20.00}{3.5} | |
\rule{0pt}{4ex}{\bfseries Expenses} & & & Amount (\textsterling)\\ | |
\midrule | |
%%%% PUT YOUR EXPENSES HERE | |
\expense{Flights}{123.45} | |
\expense{Hotels}{123.45} | |
\expense{Trains}{74.15} | |
\expense{Subsistence}{17.63} | |
\expense{Taxis}{640.90} | |
\expense{Calls and Data}{230.54} | |
\midrule | |
Sum Fees &&& \totalttc\\ | |
Sum Expenses &&& \totalttctwo\\ | |
\VAT | |
%\bottomrule | |
\hhline{====} | |
{\bfseries Total} &&& \FPadd\tempfour{\totalttc}{\totalttctwo}\FPround\tempfour{\tempfour}{2}\FPadd\tempfour{\tempfour}{\totalttcthree}\FPround\tempfour{\tempfour}{2}{\bfseries \tempfour} \\ | |
%\bottomrule | |
\end{longtable} | |
If this could paid to the following account:\\ | |
BANK ADDRESS\\ | |
Sort Code XX XX XX\\ | |
Account Number XXXXXXXXX | |
For and on behalf of XXXXXXXXXX,\\[0.75em] | |
{\bfseries NAME} | |
% | |
\vfill% | |
Company Registration Number: XXXXXXXXXXX \\ | |
Registered Office Address: XXXXXXXXXXX\\ | |
VAT Number XXXXXXXXXXXXX | |
%{\slshape Enclosure} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment