%
% This file is machine generated by 'MUI-Rechnung 2.9 (31.10.94)'
%
\bankaccount{Stadtsparkasse Teststadt \BLZ{765\ts 432\ts 10}\ 123\ts 456}%
\phonenumber{\pushup{(}0\ts 12\ts 34\pushup{)} 56\ts 78}%
\faxnumber{\pushup{(}0\ts 12\ts 34\pushup{)} 56\ts 79}%
\myref{Muster}%
\company{Die Firma}%
\street{Musterstraße 1}%
\city{12345 Musterstadt}%
\owner{Hans Mustermann}%

\def\companytext{Hier können zwei Zeilen Text stehen,\par die unter dem Firmenlogo Platz finden.}

\setthanksname{\centerline{Am Ende können vier Zeilen}
\centerline{Text stehen für allgemeine}
\centerline{Geschäftsbedingungen oder}
\centerline{sonstigen Hinweisen.}}

% patch the bodyhead

\chardef\atcode=\catcode`\@
\catcode`\@=11 % \makeatletter

\newcount\entry
\entry=0

\def\bodyhead{\hrule\vskip\blocklineskip
  \line{\ifnum\invoicenumber>0\vbox{\hbox{\footfont\numbername\hfil}
      \hbox{\number\invoiceyear/\the\invoicenumber\hfil}}\hfil\advance\entry1\fi
    \ifnum\customernumber>0\vbox{\hbox{\footfont\customername\hfil}
      \hbox{\the\customernumber\hfil}}\hfil\advance\entry1\fi
    \ifx\order@date\empty\null\else\advance\entry1
      \vbox{\hbox{\footfont\ordername\hfil}
        \hbox{\order@date\hfil}}\hfil\fi
    \ifx\your@ref\empty\null\else\advance\entry1
      \vbox{\hbox{\footfont\yourrefname\hfil}
        \hbox{\your@ref\hfil}}\hfil\fi
    \ifx\my@ref\empty\null\else\ifcase\entry\hfil\fi
      \vbox{\hbox{\footfont\myrefname\hfil}
        \hbox{\my@ref\hfil}}\fi}\bigskip
    \line{\hfil\underbar{\bf\invoicename}\hfil}
    \vskip\blocklineskip\hrule\vskip\positionskip}

\catcode`\@=\atcode % return to previous catcode
