home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1998 #5
/
AmigaPlus_CD-ROM_Nr.5-98.iso
/
pd
/
daten
/
mt-rechnungiii
/
printdoks
/
rechnungsübersicht_nw2.outpri
< prev
next >
Wrap
Text File
|
1998-04-18
|
8KB
|
386 lines
3$VER: Rechnungsübersicht Netto Währung2 1.03 (18.04.98)
%!PS-Adobe-3.0
%%Creator: Manfred Tremmel
%%BoundingBox: 0 0 594 839
%%EndComments
%% PostScript-Programm
/PageSize [594 839] def
/DokumentRandX 54 def
/DokumentRandY 50 def
DruckrandX 720 mul 256 div /DruckrandX exch def
DruckrandY 720 mul 256 div /DruckrandY exch def
DruckrandX DokumentRandX ge
{
0 /DokumentRandX exch def
}
{
DokumentRandX DruckrandX sub /DokumentRandX exch def
} ifelse
DruckrandY DokumentRandY ge
{
PageSize 1 get /DokumentRandY exch def
}
{
PageSize 1 get DokumentRandY sub DruckrandY add /DokumentRandY exch def
} ifelse
/DokumentRandYOriginal DokumentRandY def
/reencodedict 5 dict def
/ReEncode
{
reencodedict begin
/newencoding exch def
/newfontname exch def
/basefontname exch def
/basefontdict basefontname findfont def
/newfont basefontdict maxlength dict def
basefontdict
{ exch dup dup /FID ne exch /Encoding ne and
{ exch newfont 3 1 roll put }
{ pop pop }
ifelse
} forall
newfont /FontName newfontname put
newfont /Encoding newencoding put
newfontname newfont definefont pop
end
} def
/xdef {exch def} bind def
/getfont {ISOLatin1Encoding ReEncode findfont exch scalefont def} bind def
/getsymbol {findfont exch scalefont def} bind def
%%EndResource
%% Fontpsoidoname, Fontgroesse, Realname, Programm (siehe oben)
/Times10Zeile 10 def
/Times10 Times10Zeile /OF0 /Times-Roman /OF0 getfont
/Times24Zeile 24 def
/Times24 Times24Zeile /OF0 /Times-Roman /OF0 getfont
/Seite 1 def
/SeitenNr 4 string def
/W 2 def
/N 2 def
/B 3 def
/M 1 def
%% Definition der Überschrift
/Ueberschrift
{
/BoxX1 DokumentRandX def
/BoxX2 486 def
/BoxY1 DokumentRandY 2 sub Times10Zeile sub def
/BoxY2 Times10Zeile Times10Zeile add def
0.9 setgray
BoxX1 BoxY1 BoxX2 BoxY2 rectfill
0.0 setgray
BoxX1 BoxY1 BoxX2 BoxY2 rectstroke
DokumentRandX 3 add DokumentRandY moveto
(RechNr.) show
DokumentRandX 50 add DokumentRandY moveto
(Datum) show
DokumentRandX 200 add DokumentRandY moveto
(Rechnungsempfänger) show
DokumentRandX 300 add DokumentRandY moveto
(Verkäufer) show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
DokumentRandX 50 add DokumentRandY moveto
(ArtikelNr) show
DokumentRandX DokumentRandY moveto
(Anzahl) dup stringwidth
pop 150 exch sub
DokumentRandX add DokumentRandY moveto show
DokumentRandX 160 add DokumentRandY moveto
(Einheit) show
DokumentRandX DokumentRandY moveto
(MWSt) dup stringwidth
pop 250 exch sub
DokumentRandX add DokumentRandY moveto show
DokumentRandX DokumentRandY moveto
(Einzelpreis) dup stringwidth
pop 325 exch sub
DokumentRandX add DokumentRandY moveto show
DokumentRandX DokumentRandY moveto
(Positionssumme) dup stringwidth
pop 400 exch sub
DokumentRandX add DokumentRandY moveto show
DokumentRandX DokumentRandY moveto
(Endsumme) dup stringwidth
pop 480 exch sub
DokumentRandX add DokumentRandY moveto show
DokumentRandY Times10Zeile sub 5 sub /DokumentRandY exch def
} def
%% Ausgabe der Kopfdaten
Times24 setfont
DokumentRandX DokumentRandY moveto
(Ausgangsrechnungen \(Netto\)) dup stringwidth pop
PageSize 0 get exch sub 2 div cvi DokumentRandY moveto show
DokumentRandY Times24Zeile sub Times24Zeile sub /DokumentRandY exch def
Times10 setfont
Ueberschrift
/ARechnungElemente ARechnungTabelle length def
/ARechnungPosition 0 def
ARechnungTabelle
{
ARechnungPosition 1 add /ARechnungPosition exch def
ARechnungElemente ARechnungPosition eq
{
/Zeilen 2 def
dup 21 get
{
{
Zeilen 1 add /Zeilen exch def
} if
} forall
Zeilen Times10Zeile mul cvi 50 add DokumentRandY gt
{
DokumentRandX 450 add 50 moveto
(Seite: ) show
Seite SeitenNr cvs show
/Merker exch def
showpage
/DokumentRandY DokumentRandYOriginal def
Ueberschrift
Merker
Seite 1 add /Seite exch def
} if
DokumentRandX 3 add DokumentRandY moveto
(Gesamtsumme \(Netto\):) show
DokumentRandX DokumentRandY moveto
dup 16 get N get dup stringwidth
pop 480 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
/Zaehler 0 def
dup 21 get
{
{
DokumentRandX 3 add DokumentRandY moveto
(Mehrwertsteuer \() show
dup 20 get Zaehler get show
(%, Netto: ) show
dup 27 get Zaehler get N get show
(, Brutto: ) show
dup 27 get Zaehler get B get show
(\):) show
DokumentRandX DokumentRandY moveto
dup 24 get Zaehler get M get dup stringwidth
pop 480 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
} if
Zaehler 1 add /Zaehler exch def
} forall
DokumentRandX 3 add DokumentRandY moveto
(Gesamtsumme \(Brutto\):) show
DokumentRandX DokumentRandY moveto
16 get B get dup stringwidth
pop 480 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
}
{
/Zeilen 3 def
dup 24 get
{
Zeilen 1 add /Zeilen exch def
} if
dup 32 get
{
Zeilen 1 add /Zeilen exch def
} if
dup 36 get
{
Zeilen 1 add /Zeilen exch def
} if
dup 66 get
{
Zeilen 1 add /Zeilen exch def
pop
} forall
Zeilen Times10Zeile mul cvi 50 add DokumentRandY gt
{
DokumentRandX 450 add 50 moveto
(Seite: ) show
Seite SeitenNr cvs show
/Merker exch def
showpage
/DokumentRandY DokumentRandYOriginal def
Ueberschrift
Merker
Seite 1 add /Seite exch def
} if
DokumentRandX 3 add DokumentRandY moveto
dup 0 get show
DokumentRandX 50 add DokumentRandY moveto
dup 16 get 0 get show
DokumentRandX 200 add DokumentRandY moveto
dup 3 get show
DokumentRandX 300 add DokumentRandY moveto
dup 2 get show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
dup 66 get
{
DokumentRandX 50 add DokumentRandY moveto
dup 1 get 1 get show
DokumentRandX DokumentRandY moveto
dup 1 get 2 get dup stringwidth
pop 150 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandX 160 add DokumentRandY moveto
dup 0 get 5 get show
DokumentRandX DokumentRandY moveto
dup 1 get 9 get dup stringwidth
pop 250 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandX DokumentRandY moveto
dup 1 get 4 get W get dup stringwidth
pop 325 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandX DokumentRandY moveto
1 get 6 get W get dup stringwidth
pop 400 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
} forall
dup 32 get
{
DokumentRandX 50 add DokumentRandY moveto
(abzüglich Rabatt ) show
dup 33 get show
( %:) show
DokumentRandX DokumentRandY moveto
dup 34 get W get dup stringwidth
pop 400 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
} if
dup 36 get
{
DokumentRandX 50 add DokumentRandY moveto
(abzüglich Skonto ) show
dup 37 get show
( %:) show
DokumentRandX DokumentRandY moveto
dup 38 get W get dup stringwidth
pop 400 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
} if
dup 24 get
{
DokumentRandX 50 add DokumentRandY moveto
(Versandkosten:) show
DokumentRandX DokumentRandY moveto
dup 25 get W get dup stringwidth
pop 400 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandY Times10Zeile sub /DokumentRandY exch def
} if
DokumentRandX 50 add DokumentRandY moveto
(Rechnungsendbetrag:) show
DokumentRandX DokumentRandY moveto
42 get W get dup stringwidth
pop 480 exch sub
DokumentRandX add DokumentRandY moveto
show
DokumentRandY Times10Zeile sub 5 sub /DokumentRandY exch def
} ifelse
} forall
DokumentRandX 450 add 50 moveto
(Seite: ) show
Seite SeitenNr cvs show
showpage
%%Trailer
clear
%%EOF