\documentclass[10pt,a4paper]{article}
\usepackage{a4,ifthen,german,fancyheadings,supertabular,array,lastpage, calc, graphicx, dcolumn, color, fancybox, setspace}
\pagestyle{fancy}
\graphicspath{{/unix_home/bz7xt6/etc/invoicing/}}
\setlength{\headwidth}{19.0cm}
\setlength{\headheight}{0.0cm}
\setlength{\headsep}{3.0cm}
\setlength{\topmargin}{-1.5cm}
\setlength{\oddsidemargin}{-1.0cm}
\setlength{\textheight}{22.0cm}
\setlength{\textwidth}{19.0cm}
\setlength{\footskip}{0.5cm}
\setlength{\parindent}{0.0cm}
\setlength{\tabcolsep}{0.0cm}
\usepackage{/unix_home/bz7xt6/etc/roaming}
\lfoot{}\cfoot{}\setlength{\headrulewidth}{0.0pt}
\setlength{\footrulewidth}{0.4pt}
\begin{document}
\parbox[t]{9cm}{{\bf To:} \parbox[t]{8.0cm} {
hpmn\_name \\ 
hpmn\_additionalAddress \\ 
hpmn\_department \\ 
hpmn\_function \\ 
hpmn\_contact \\ 
hpmn\_adr1 \\ 
hpmn\_adr2 \\ 
zip hpmn\_city \\ 
hpmn\_country \\ 
}} 
\parbox[t]{9cm}{{\bf From:} \parbox[t]{8.0cm} {
vpmn\_name \\ 
vpmn\_additionalAddress \\ 
vpmn\_department \\ 
vpmn\_function \\ 
vpmn\_contact \\ 
vpmn\_adr1 \\ 
vpmn\_adr2 \\ 
zip vpmn\_city \\ 
vpmn\_country \\ 
}} 
\\\parbox[t]{9cm}{\begin{tabular}[t]{lp{8.5cm}} 
Operator code: \hspace{1mm} &  hpmnCode/hpmnId \\ 
hpmn\_VAT-No.: \hspace{1mm} &  ABC 123456789 - 2006 \\ 
Debitor-No: \hspace{1mm} &  12345678 \\ 
 \end{tabular}} 
\parbox[t]{9cm}{\begin{tabular}[t]{lp{8.5cm}} 
Operator code: \hspace{1mm} &  vpmnCode/vpmnId \\ 
vpmn\_VAT-No.: \hspace{1mm} &  XYZ 123456789 - 2006 \\ 
Creditor-No: \hspace{1mm} &  12345678 \\ 
VAT advice: \hspace{1mm} &  Reverse Charge \\ 
 \end{tabular}} 
\\[1.5cm]\docutype{Invoice}{GSM Roaming Traffic}
\invdatetabheader 
Invoice Number: & {\bf \flq vpmn\frq\flq hpmn\frq-R1305-232} & &  &  \\ 
Invoice Date: & 27.06.2013 & &  &  \\ 
Invoice Period: & 01.05.2013 - 31.05.2013 & & TAP sequence number: & 24343 - 24557 \\ 
\invdatetabtrailer \\ 
\invtabheaderone{Invoice}{EUR}{SDR} 
1 & Roaming & 14.403,8599 & 12.464,7229 \\ \hline 
\hline \multicolumn{2}{|r|} {\bf Total Net Amounts} & {\bf14.403},{\bf8599} & {\bf12.464},{\bf7229} \\ \hline 
\multicolumn{2}{|r|} {\bf Total VAT Amounts} & {\bf0},{\bf0000} & {\bf0},{\bf0000} \\ \hline 
\multicolumn{2}{|r|} {\bf Total Amounts} & {\bf14.403},{\bf8599} & {\bf12.464},{\bf7229} \\ \hline 
\hline  \multicolumn{2}{|r|} {Roundings} & 0,0001 & { } \\ \hline 
\hline \multicolumn{2}{|r|} {\bf Gross Amounts} & {\bf14.403},{\bf86} & { } \\ \hline 
\invtabtrailer \\[0.5cm] 
\exrateheaderone
\exratevalueone{1,155570}{EUR}{23.04.2013} 
\exratetrailer 
\writepaymentbegin
Payable Currency: & \parbox[t]{6.0cm}{EUR} & & Account: & \parbox[t]{6.0cm}{vpmn-bankaccount} \\ 
Total Amount due: & \parbox[t]{6.0cm}{14.403,86} & & Bank Code: & \parbox[t]{6.0cm}{vpmn-bankcode} \\ 
In favour of: & \parbox[t]{6.0cm}{vpmn\_adr3} & & Swift Code: & \parbox[t]{6.0cm}{vpmn-bankswiftcode} \\ 
Payment due by: & \parbox[t]{6.0cm}{11.08.2013} & & Bank: & \parbox[t]{6.0cm}{vpmn-bankName} \\ 
Method of payment: & \parbox[t]{6.0cm}{BILFC} & &  & \parbox[t]{6.0cm}{bankStreet} \\ 
 & \parbox[t]{6.0cm}{} & &  & \parbox[t]{6.0cm}{bankZip bankTown} \\ 
 & \parbox[t]{6.0cm}{} & &  & \parbox[t]{6.0cm}{bankCountry} \\ 
\writepaymentend
{\\[8mm] \small {
advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement advertisement 
} \\[0.5cm] 
\newpage 
\begin{center} \LARGE \bf Invoice Summary Net Amount \end{center} 
\exratetaxheaderone{EUR} 
1 & 1,155570 & 05.2013 & 0,00 & 0,0000 & 14.403,8599 & 12.464,7229 \\ \hline 
\hline \multicolumn{4}{|l|} {\bf Summary} & {\bf 0,0000} & {\bf 14.403,8599} & {\bf 12.464,7229} \\ \hline 
\exratetaxtrailer 
\sumgeneralheader{Roaming}{EUR}{SDR} 
1 & Roaming GPRS   & 3.857,2119 & 3.337,9301 \\ \hline 
2 & Roaming SMS-MO   & 1.337,8152 & 1.157,7102 \\ \hline 
3 & Roaming bearer data   & 0,0700 & 0,0606 \\ \hline 
4 & Roaming telephony (MOC)   & 9.202,8028 & 7.963,8644 \\ \hline 
5 & Roaming video telephony (MOC)   & 5,9600 & 5,1576 \\ \hline 
\hline \multicolumn{2}{|l|} {\bf Net Roaming Summary} & {\bf 14.403,8599} & {\bf 12.464,7229} \\ \hline 
\sumsupertrailer \\[0.5cm] 
\headerdetailtapnull
1 & File1 & 15,1437 & 0,00000 & 15,14370 \\ \hline 
215 & File215 & 3,0087 & 0,00000 & 3,00870 \\ \hline 
\hline \trailerdetailtapnull{12.464,7229}
\BSG Clearing Solutions
\end{document}
