home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1987 June
/
64er_Magazin_87-06_1987_Markt__Technik_de_Side_B.d64
/
mony64.bas
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
31KB
|
879 lines
10 goto100
20 poke214,int(po/40):poke211,po-((int(po/40))*40):sys58640:return
30 return
35 we=1:goto61600
40 we=2:goto61600
50 we=3:goto61600
60 we=4:goto61600
70 forpo=880to960step40:gosub20:sys59903:next:sys58732:return
80 forpo=200to960step40:gosub20:sys59903:next:sys58732:return
100 dimkn$(111),su(111),pl(111),pa(14),bu$(20),js(25),vm$(20),dr$(6),fb$(51)
110 kn$(0)="[197][201][206][206][193][200][205][197][206]":pa(13)=1:pa(14)=1985
120 kn$(110)="[193][213][211][199][193][194][197][206] [199][197][211][193][205][212]":dr$(0)="4":dr$(1)="7":dr$(2)="14":dr$(3)="15"
123 dr$(4)="":dr$(5)="":dr$(6)=""
125 kn$(111)="[196][201][198][198][197][210][197][206][218]"
130 deffna(fr)=fr-int(fr)
132 printchr$(8)chr$(14)"[147]"
134 md$="[211][217][211][212][197][205]-[211][212][193][210][212]":gosub60100:po=61:gosub20:print" "
136 po=280:gosub20:print"[129]([195]) 1987[151] [199]. [194]oehm, 4005 [205]eerbusch"
138 print"[194]itte warten [211]ie das [208]rogramm wird"
139 print"initialisiert."
140 fori=1to39:lo$=lo$+chr$(32):next
150 restore:fori=1to24:readmo$:next:fori=49152to49240:reada:pokei,a:next
170 goto500
200 md$="[196]rucker":gosub60100:po=61:gosub20:print" "
210 po=200:gosub20:print"[196]ruckeranpassung:"
220 ei$=dr$(0):po=280:l=2:au$="[196]ruckeradresse..: ":we=1:gosub61500:dr$(0)=ei$
230 x=val(dr$(0)):ifx<4orx>5then220
240 ei$=dr$(1):po=320:l=2:au$="[211]ekundaeradresse: ":we=1:gosub61500:dr$(1)=ei$
250 x=val(dr$(1)):ifx<0orx>127then240
260 po=400:gosub20:print"[211]teuerzeichen bitte 3 stellig mit [211]pace[146]"
270 po=440:gosub20:print"als [212]rennung eingeben."
280 ei$=dr$(2):po=520:l=15:au$="[194]reitschrift ein: ":we=1:gosub61500:dr$(2)=ei$
290 f=0:fori=1tolen(dr$(2))step4:x=val(mid$(dr$(2),i,4)):ifx<0orx>255thenf=1
295 next:iff=1then280
297 ifval(dr$(2))=0thendr$(2)=""
300 ei$=dr$(3):po=560:l=15:au$="[194]reitschrift aus: ":we=1:gosub61500:dr$(3)=ei$
310 f=0:fori=1tolen(dr$(3))step4:x=val(mid$(dr$(3),i,4)):ifx<0orx>255thenf=1
315 next:iff=1then300
317 ifval(dr$(3))=0thendr$(3)=""
320 ei$=dr$(4):po=640:l=15:au$="[196]ruckstart 1....: ":we=1:gosub61500:dr$(4)=ei$
330 f=0:fori=1tolen(dr$(4))step4:x=val(mid$(dr$(4),i,4)):ifx<0orx>255thenf=1
335 next:iff=1then320
337 ifval(dr$(4))=0thendr$(4)=""
340 ei$=dr$(5):po=680:l=15:au$="[196]ruckstart 2....: ":we=1:gosub61500:dr$(5)=ei$
350 f=0:fori=1tolen(dr$(5))step4:x=val(mid$(dr$(5),i,4)):ifx<0orx>255thenf=1
355 next:iff=1then340
357 ifval(dr$(5))=0thendr$(5)=""
360 ei$=dr$(6):po=760:l=15:au$="[204]inefeed........: ":we=1:gosub61500:dr$(6)=ei$
370 f=0:fori=1tolen(dr$(6))step4:x=val(mid$(dr$(6),i,4)):ifx<0orx>255thenf=1
375 next:iff=1then360
377 ifval(dr$(6))=0thendr$(6)=""
380 po=920:gosub20:print"[193]lle [197]ingaben [210]ichtig ? ([202]/[206])"
390 gosub60200:ifx$="n"orx$="[206]"thengosub70:goto220
400 ifx$<>"j"andx$<>"[202]"then390
410 ifm2=1thenreturn
420 gosub450:ifer=0thenreturn
430 goto200
450 gosub60500:ifer<>0thenreturn
455 open15,8,15:open2,8,2,"@:drucker,s,w"
460 gosub60700:ifer<>0thenclose2:close15:return
465 fori=0to6:ifdr$(i)=""thendr$(i)=" "
470 print#2,dr$(i):goto30020
480 gosub60500:ifer<>0thenreturn
485 open15,8,15:open2,8,2,"drucker,s,r"
490 input#15,er:ifer<>0thenclose2:close15:return
493 fori=0to6:input#2,dr$(i):ifdr$(i)=" "thendr$(i)=""
495 goto30020
500 gosub80:po=240:gosub20:print"[129]([195]) 1987[151] [199]. [194]oehm, 4005 [205]eerbusch"
510 po=360:gosub20:print"[194]itte legen [211]ie die aktuelle [196]atendis-"
515 po=440:gosub20:print"kette von diesem [202]ahr in die [198]loppy."
520 po=520:gosub20:print"[196]ruecken [211]ie:"
525 po=640:gosub20:print"[149][210]eturn[146] fuer [211]ystem-[211]tart"
530 po=720:gosub20:print" [149][206][146] fuer [206]eustart"
535 po=800:gosub20:print" [149][196][146] fuer [196]ruckeranpassung"
540 gosub60200:ifx$="n"orx$="[206]"then600
545 ifx$="d"orx$="[196]"thengosub200:goto500
550 ifx$<>chr$(13)then540
555 gosub61800:ifer=0then560
556 po=880:gosub20:print"[211]ie haben keine [196]atendiskette von"
557 po=920:gosub20:print"diesen [208]rogramm eingelegt !!!"
558 gosub61950:goto540
560 gosub30000:ifer<>0then500
565 gosub30400:ifer<>0then500
567 lj$=right$(" "+str$(pa(13)),2)+"/"+right$(str$(pa(14)),2)
569 gosub480:ifer<>0thengosub200
570 po=920:l=10:au$="[212]agesdatum ([212][212].[205][205].[202][202][202][202]): ":gosub50:da$=ei$:gosub61300
580 ifda$=""thengosub60612:goto570
590 ad$=da$:goto1000
600 md$="[211][217][211][212][197][205]-[206][197][213][211][212][193][210][212]":gosub60100:po=61:gosub20:print" "
610 po=360:gosub20:print"[211]ind [211]ie [211]icher ? ([202]/[206])"
620 gosub60200:ifx$="j"orx$="[202]"then640
630 goto500
640 gosub80:po=240:l=2:au$=" [211]tartmonat ([205][205]): ":gosub40
650 pa(13)=val(ei$):ifpa(13)<1orpa(13)>12then640
660 po=320:l=4:au$="[211]tartjahr ([202][202][202][202]): ":gosub40
670 pa(14)=val(ei$):ifpa(14)<1985then660
680 po=920:l=10:au$="[212]agesdatum ([212][212].[205][205].[202][202][202][202]): ":gosub50:da$=ei$:gosub61300
690 ifda$=""thengosub60612:goto680
700 ad$=da$:ud$=ad$
710 m2=1:gosub200:m2=0
720 gosub70:po=880:gosub20:print"[194]itte legen sie eine [151]leere[146] oder [151]unfor-"
730 po=920:gosub20:print"[151]matierte[146] [196]iskette in das [204]aufwerk."
750 gosub61950
760 gosub70:po=920:gosub20:print"[129][196]iskette wird formatiert":gosub61400
775 gosub450:ifer<>0then700
780 gosub30100:ifer<>0then700
782 gosub30500:ifer<>0then700
784 gosub30900:ifer<>0then700
785 gosub30970:ifer<>0then700
786 gosub30300:ifer<>0then700
788 gosub30700:ifer<>0then700
790 fi$="@:buchungen ":gosub60900:x$="w"
795 gosub31000:ifer<>0then700
797 close2:close15
800 ifm1=5thengosub6600
1000 pa(0)=0:close2:close15:close4:md$="[200][193][213][208][212][205][197][206][213][197]":gosub60100
1010 po=280:gosub20:print" [198]1 [146] _[192] [194]uchen":print" [198]2 [146] _[192] [202]ournal"
1020 print" [198]3 [146] _[192] [205]onatsuebersicht":print" [198]4 [146] _[192] [205]onatsabschluss"
1030 print" [198]5 [146] _[192] [208]lanzahleneingabe":print" [198]6 [146] _[192] [203]ontenplan"
1040 print" [198]7 [146] _[192] [214]ermoegen / [194]ilanz":print" [198]8 [146] _[192] [206]ach- und [198]ixbuchen"
1050 gosub60300:ifx<1orx>8then1050
1060 onxgoto5000,3000,4000,8000,7000,6000,2000,9000
1070 sys64738
2000 gosub30000:ifer<>0then1000
2010 md$="[203][207][206][212][197][206][208][204][193][206]":m1=1:gosub52060
2020 onxgoto2070,40000,2050
2030 gosub42110:gosub42300:gosub42110
2040 dr$="[206]r. [203]onto"+left$(lo$,31)+"[206]r. [203]onto":gosub42100:zl=zl+4:return
2050 ifpa(0)=0thengosub1000
2055 gosub30100:ifer<>0then1000
2060 goto1000
2070 zl=-10:gosub52040
2080 gosub60200:ifx$="m"orx$="[205]"then2010
2085 ifx$="d"orx$="[196]"thengosub60800:gosub51010
2090 ifx$="k"orx$="[203]"then2110
2100 goto52000
2110 gosub70
2120 po=880:l=3:au$="[203]ontonummer: ":gosub40
2130 i=val(ei$):ifi<zlori>zl+9thengosub60608:goto2120
2140 pa(0)=1:gosub70:po=880:gosub20:print"[203]onto [193]lt: "kn$(i)
2150 po=920:l=20:au$="[203]onto [206]eu: ":gosub60:kn$(i)=ei$
2160 ifzl=-10then52040
2170 goto52050
3000 md$="[205][207][206][193][212][211][213][197][194][197][210][211][201][195][200][212]":m1=2:gosub52060
3010 y=x:ify=1ory=2then3400
3020 onygoto3030,40000,1000
3030 zl=-10:gosub52040
3040 gosub60200:ifx$="m"orx$="[205]"then3000
3050 ifx$="d"orx$="[196]"thengosub60800:gosub51030
3060 ifx$="s"orx$="[211]"thengosub3130
3065 ifx$="j"orx$="[202]"thengosub3300
3070 goto52000
3080 y$=left$(x$,13):x$=str$(pl(x)):gosub60000:y$=y$+" "+x$
3090 x$=str$(su(x)):gosub60000:y$=y$+" "+x$
3100 za=pl(x)-su(x):ifx<=9orx=111thengosub60310
3110 x$=str$(za):gosub60000:ifval(x$)<0theny$=y$+""
3120 x$=y$+x$+"":return
3130 gosub70:x=0:gosub50200:gosub3080:po=880:gosub20:printx$
3140 x=110:gosub50200:gosub3080:po=920:gosub20:printx$
3150 x=111:gosub50200:gosub3080:po=960:gosub20:printx$;
3160 gosub60200:ifx$="d"orx$="[196]"thengosub60800
3170 zl=-10:goto52040
3220 x$=str$(pl(x)):gosub60000:dr$=left$(dr$,30)+x$+" "
3230 x$=str$(su(x)):gosub60000:dr$=dr$+x$+" "
3240 za=pl(x)-su(x):ifx<=9orx=111thengosub60310
3245 x$=str$(za):gosub60000:dr$=dr$+x$+" "
3247 ifx<=9orx>110orsu(x)=0thenreturn
3248 za=100/(su(110)/su(x)):x$=str$(za):gosub60000:dr$=dr$+x$:return
3250 dr$=" "+mo$+" "+str$(pa(14)):gosub42100:gosub42300:gosub42110
3260 dr$="[206]r. [203]onto"+left$(lo$,25)+"[208]lan [193]usgaben [196]ifferenz %"
3270 gosub42100:zl=zl+4:return
3280 gosub30600:ifer<>0then3350
3300 gosub70:po=880:l=3:au$="[203]ontonummer: ":gosub40
3310 x=val(ei$):ifx<0orx>109thengosub60608:goto3310
3320 fr=x/10:iffna(fr)=0thenmx=x+9:mi=x:goto3340
3330 mx=x:mi=x
3340 gosub7260:ifer=0thengosub7140
3350 ifzl=-10then52040
3360 goto52050
3400 gosub61000:gosub60910
3410 gosub30210:ifer<>0then1000
3420 gosub30610:ifer<>0then1000
3430 gosub61100:goto3020
4000 md$="[208][204][193][206][218][193][200][204][197][206]":m1=3:gosub52060
4003 y=x:ify=1ory=2then4400
4010 onygoto4050,40000,1000
4020 x$=str$(pl(x)):gosub60000:dr$=left$(dr$,30)+x$+" ":return
4030 ifpa(0)=0then4000
4035 gosub30710:ifer<>0then4000
4040 pa(0)=0:goto4000
4050 zl=-10:gosub52040
4060 gosub60200:ifx$="m"orx$="[205]"then4030
4065 ifx$="d"orx$="[196]"thengosub60800:gosub51060
4070 ifx$="e"orx$="[197]"then4100
4080 goto52000
4090 y$=left$(x$,13):x$=str$(pl(x)):gosub60000:x$=y$+" "+x$:return
4100 ifzl=-10then4060
4110 pa(0)=1:pl(zl)=0:forx=zl+1tozl+9:ifkn$(x)=""orkn$(x)=" "thenx$="":goto4160
4120 ze=10+(x-zl):po=(ze*40)+25:l=8:au$="":gosub50:x$=ei$
4140 gosub60000:po=(ze*40)+25:gosub20:printx$:po=(ze*40)+14:gosub20:printx$
4160 pl(x)=val(x$):next:gosub61100:goto52050
4170 gosub60900:dr$=" "+mo$+str$(pa(14)):gosub42100:gosub42300:gosub42110
4180 dr$="[206]r. [203]onto"+left$(lo$,25)+"[208]lan [206]r. [203]onto"+left$(lo$,25)+"[208]lan"
4185 gosub42100:zl=zl+4:return
4400 gosub61000:gosub60910
4410 gosub30610:ifer<>0then1000
4420 gosub61100:goto4010
5000 md$="[194][213][195][200][197][206]":gosub60100
5003 ei$=lj$:gosub61005
5005 m1=4:bu=1:tg$="":gosub60100
5010 x=0:fori=1to109:iflen(kn$(i))>1thenx=x+1
5012 next:ifx=0thengosub60616:goto1000
5013 gosub60900:gosub61200
5015 gosub30200:ifer<>0then1000
5017 ifm2<>0thenpa(13)=m2
5019 gosub5900
5020 ze=8+bu:po=(ze*40):gosub20:print"[129]"right$(" "+str$(bu+pa(mo)),3)
5025 tg$="":tx$="":bt$="":ko$=""
5030 ei$=tg$:po=(ze*40)+4:l=2:au$="":we=1:gosub61500:tg$=ei$
5035 ifasc(tg$)=94then5250
5040 ifval(tg$)<1orval(tg$)>tthentg$="":gosub60604:gosub5910:goto5030
5045 tg$=right$("00"+tg$,2):gosub20:printtg$".";
5050 ei$=tx$:po=(40*ze)+8:l=16:au$="":we=4:gosub61500:tx$=ei$
5070 ei$=bt$:po=(ze*40)+25:l=8:au$="":we=3:gosub61500:x$=ei$
5075 gosub60000:bt$=x$:sp=25:gosub8970
5080 x=val(bt$):ifx>99999orx<-99999thenbt$="":gosub60606:gosub5910:goto5070
5087 ifx=0thengosub5400:gosub70:gosub5910:goto5070
5090 bu$(bu)=tg$+tx$+left$(lo$,16-len(tx$))+bt$
5100 ei$=ko$:po=(40*ze)+35:l=3:au$="":we=1:gosub61500:ko$=ei$
5110 x=asc(ko$):ifx=94then5220
5130 x=val(ko$):ifx<0orx>109thenko$="":goto5100
5140 fr=x/10
5145 iffna(fr)=0orx>109orkn$(x)=" "orkn$(x)=""thengosub60602:gosub5910
5147 iffna(fr)=0orx>109orkn$(x)=" "orkn$(x)=""thenko$="":goto5100
5150 ko$=right$("000"+ko$,3):po=(40*ze)+35:gosub20:printko$:bu$(bu)=bu$(bu)+ko$
5160 gosub70:po=920:gosub20:print"[151][203][146]orrektur [210]eturn[146] = ok";
5170 gosub60200:ifx$="[203]"orx$="k"then5030
5180 ifx$<>chr$(13)then5170
5190 gosub70:gosub5910:su(x)=su(x)+val(mid$(bu$(bu),19,8))
5200 bu$(bu)=bu$(bu):bu=bu+1:ifbu=13thengosub5290:gosub5900
5210 goto5020
5220 zl=-10:gosub52040
5230 gosub60200:ifx$="e"orx$="[197]"then5260
5240 goto52000
5250 gosub5290:ifm2<>0thenreturn
5255 goto1000
5260 gosub5900:fori=1tobu:ze=8+i
5265 po=(ze*40):gosub20:print"[129]"right$(" "+str$(i+pa(mo)),3)
5270 po=(ze*40)+4:gosub20:print""left$(bu$(i),2)"."
5275 po=(ze*40)+8:gosub20:print""mid$(bu$(i),3,16)
5280 sp=25:gosub20:x$=mid$(bu$(i),19,8):gosub8970
5285 po=(ze*40)+35:gosub20:print""right$(bu$(i),3):next:ko$="":goto5100
5290 ifbu=1thenreturn
5295 fi$="@:buchungen ":gosub60900:x$="a"
5300 gosub31000:ifer<>0then1000
5310 fori=1tobu-1:print#2,bu$(i):bu$(i)="":next:close2:close15
5320 pa(mo)=pa(mo)+(bu-1):bu=1
5330 ud$=ad$:gosub30500:ifer<>0then1000
5340 gosub61100:gosub30300:ifer<>0then1000
5350 return
5400 a1=0:a2=0:gosub70
5410 gosub5800:po=946:l=8:au$="[129]":gosub50:a1=val(ei$)
5420 ifa1>99999ora1<-99999thena1=0:gosub60606:gosub5800:goto5410
5430 x$=str$(a1):gosub60000:bt$=x$:po=946:gosub20:print"[129]"bt$
5435 gosub60200:dr$=x$:po=956:gosub20:print""dr$"[146]";
5440 ifdr$<>"+"anddr$<>"-"anddr$<>"*"anddr$<>"/"anddr$<>"%"anddr$<>"="then5435
5450 ifdr$="%"then5520
5465 ifdr$="="thenreturn
5470 gosub5800:po=946:l=8:au$="[129]":gosub50:a2=val(ei$)
5480 ifdr$="+"thena3=a1:a4=100+a2:a1=a1+a2:goto5530
5490 ifdr$="-"thena3=a1:a4=100-a2:a1=a1-a2:goto5530
5500 ifdr$="/"thena1=a1/a2:goto5530
5510 ifdr$="*"thena1=a1*a2:goto5530
5520 ifdr$="%"thena1=(a3*a4)/100
5530 ifa1>99999ora1<-99999thena1=0:gosub60606:gosub5800:goto5410
5550 po=956:gosub20:print" "
5560 goto5430
5800 po=880:gosub20:print"[151][212]aschenrechenerfunktion [176][192][192][192][192][192][192][192][192][192][178][192][174]"
5810 po=945:gosub20:print"[221] [221][221] "
5820 po=960:gosub20:print"[151] + - * / % [173][192][192][192][192][192][192][192][192][192][177][192][189][145][145]";
5830 return
5900 gosub80:po=280:gosub20:print"[129][206]r. [212]ag [194]uchungstext [194]etrag [203]onto"
5910 po=880:gosub20:print"[151] [203]onto+^[146] = [200]ilfe";
5920 po=920:gosub20:print"[151] [212]ag+^[146] = [197]ingabeende";
5930 po=960:gosub20:print"[151][194]etrag=0[146] = [212]aschenrechnerfunktion[145][145]";
5940 return
6000 md$="[205][207][206][193][212][211][215][197][195][200][211][197][204]":m1=5:gosub60100
6010 po=360:gosub20:print"[211]ind [211]ie [211]icher ? ([202]/[206])"
6020 gosub60200:ifx$="j"orx$="[202]"then6035
6030 goto1000
6035 ei$=lj$:gosub61005
6040 ja=pa(14):ma=pa(13):da$=ud$:gosub6400:gosub6300
6043 gosub80:po=360:gosub20:print"[194]itte warten [196]ateien werden geschrieben"
6045 ud$=ad$:ifpa(13)=12then6120
6050 pa(13)=pa(13)+1:gosub60900
6055 lj$=right$(" "+str$(pa(13)),2)+"/"+right$(str$(pa(14)),2)
6070 po=440:gosub20:print"[206]euer [205]onat: [129]"mo$pa(14)
6080 fori=0to110:su(i)=0:pl(i)=0:next
6090 gosub30300:ifer<>0then6200
6092 gosub30500:ifer<>0then6200
6094 gosub30700:ifer<>0then6200
6100 fi$="@:buchungen ":gosub60900:x$="w"
6102 gosub31000:ifer<>0then6200
6104 close2:close15
6110 gosub6600:goto1000
6120 gosub80:po=280:gosub20:print"[149][193]chtung [202]ahreswechsel !!!"
6125 pa(13)=1:pa(14)=pa(14)+1:gosub60900
6127 lj$=right$(" "+str$(pa(13)),2)+"/"+right$(str$(pa(14)),2)
6130 mo=12:gosub30210:ifer<>0then6200
6131 gosub30800:ifer<>0then6200
6132 js(12)=su(0):js(24)=su(110):gosub30900:ifer<>0then6200
6133 js(0)=0:js(25)=0:fori=1to12:js(0)=js(0)+js(i):js(25)=js(25)+js(i+12):next
6134 gi=val(vm$(0))+js(0)-js(25):vm$(0)=str$(gi)
6138 fori=0to25:js(i)=0:next
6140 fori=0to110:su(i)=0:pl(i)=0:next:fori=1to12:pa(i)=0:next
6143 gosub480:ifer<>0thengosub200
6145 gosub30000:ifer<>0then6200
6147 gosub30950:ifer<>0then6200
6170 gosub60900:po=360:gosub20:print"[206]euer [205]onat: [129]"mo$pa(14):goto720
6200 pa(14)=ja:pa(13)=ma:ud$=da$:goto1000
6300 mo=ma
6310 gosub30210:ifer<>0then6200
6320 gosub30800:ifer<>0then6200
6330 js(pa(13))=su(0)
6340 js((pa(13))+12)=su(110)
6350 gosub30900:ifer<>0then6200
6360 return
6400 ifpa(ma)=0thenreturn
6405 gosub70:po=880:gosub20:print"[193]nlagevermoegen aktualisieren ? ([202]/[206])"
6410 gosub60200:ifx$<>"[202]"andx$<>"j"thenreturn
6415 gosub30800:ifer<>0then6200
6420 gosub60910:fi$="buchungen ":x$="r"
6430 gosub31000:ifer<>0then6200
6440 forbu=1topa(ma):input#2,bu$
6450 ifmid$(bu$,3,2)<>"v#"andmid$(bu$,3,2)<>"[214]#"then6530
6460 vm=val(mid$(bu$,5,2))
6465 x=val(mid$(bu$,19,8)):ifval(right$(bu$,3))<=9thenx=x-(x*2)
6470 x$=str$(val(mid$(vm$(vm),57,8))+x):gosub60000:bt$=x$
6480 gosub70:po=880:gosub20:print"[193]nlagevermoegen #"vm"buchen ? ([202]/[206])"
6490 po=920:gosub20:print"[193]lter [194]etrag: [129]"mid$(vm$(vm),57,8)" [194]uchen ?[146]";
6500 po=960:gosub20:print"[206]euer [194]etrag: [129]"bt$;" (j/n) [146]";
6510 gosub60200:ifx$<>"[202]"andx$<>"j"then6530
6520 vm$(vm)=mid$(vm$(vm),1,56)+bt$+ad$+right$(vm$(vm),12)
6530 next
6540 close2:close15
6550 gosub30900:ifer<>0then6200
6560 return
6600 gosub70:po=920:gosub20:print"[151][198]ixbuchungen buchen ? ([202]/[206])";
6605 gosub60200:ifx$="n"orx$="n"thenreturn
6610 ifx$="j"orx$="[202]"then6615
6613 goto6605
6615 gosub30950:ifer<>0then6000
6620 bu=1:gosub6900:forfb=0to51:ze=bu+8
6630 ifmid$(fb$(fb),mo,1)<>"*"then6720
6640 bu$(bu)="01"+mid$(fb$(fb),13,27)
6645 x=val(mid$(bu$(bu),27,3))
6650 su(x)=su(x)+val(mid$(bu$(bu),19,8))
6660 po=ze*40:gosub20:print"[129]"right$(" "+str$(bu+pa(mo)),3)
6670 po=(ze*40)+4:gosub20:print""left$(bu$(bu),2)"."
6680 po=(ze*40)+8:gosub20:print""mid$(bu$(bu),3,16)
6690 sp=25:gosub20:x$=mid$(bu$(bu),19,8):gosub8970
6700 po=(ze*40)+35:gosub20:print""right$(bu$(bu),3)
6710 bu=bu+1:ifbu=13thengosub5290:gosub6900
6720 next:gosub5290:return
6900 gosub5900:gosub70:gosub60900
6910 po=240:gosub20:print"[151][198]ixbuchungen fuer "mo$pa(14)
6920 return
7000 md$="[202][207][213][210][206][193][204]":m1=6:gosub52060
7010 y=x:ify=1ory=2thengosub7260:ifer=1then7000
7020 onygoto7140,7030,1000
7030 mo=ma:gosub60910:gosub40000:fi$="buchungen ":x$="r"
7035 gosub31000:ifer<>0then7000
7040 forbu=1topa(ma):input#2,bu$
7050 dr$=left$(bu$,2)+". "+mid$(bu$,3,16)+" "+mid$(bu$,19,8)+" "
7060 x=val(right$(bu$,3)):gosub50200
7070 dr$=dr$+x$:ko=x
7072 x$=str$(100/(su(ko)/val(mid$(bu$,19,8)))):gosub60000:dr$=dr$+x$+" "
7074 x$=str$(100/(su(110)/val(mid$(bu$,19,8)))):gosub60000:dr$=dr$+x$
7079 gosub42100:zl=zl+1
7080 ifzl>65thengosub49000:se=se+1:gosub40010
7090 next:close2:close15
7100 ifzl>50thengosub49000:se=se+1:gosub40010
7110 gosub42110:gosub42110:gosub42110:gosub3260:gosub42110:zl=zl+5
7120 forx=0to110step10:gosub50200:dr$=x$+" "
7125 ifx=110thengosub42110:zl=zl+2
7130 gosub3220:gosub42100:zl=zl+1:next:gosub49000:close4:goto7000
7140 fi$="buchungen ":mo=ma:gosub60910:x$="r":gosub31000:ifer<>0then7000
7150 gosub7250:se=0:forbu=1topa(ma):input#2,bu$
7160 x=val(right$(bu$,3)):ifm1=2and(x<miorx>mx)then7240
7170 dr$=left$(bu$,2)+". "+mid$(bu$,3,16)+" "
7180 ifval(mid$(bu$,19,8))<0thendr$=dr$+"":goto7200
7190 dr$=dr$+""
7200 dr$=dr$+mid$(bu$,19,8)+" "
7210 x=val(right$(bu$,3)):gosub50200:dr$=dr$+x$
7220 po=(se+9)*40:gosub20:printleft$(dr$,41):se=se+1
7230 ifse=13then7310
7240 next:close2:close15:goto7310
7250 gosub80:po=200:gosub20:print"[151][202]ournal "mo$pa(14)
7255 po=280:gosub20:print"[149][212]ag [212]ext"spc(15)"[194]etrag [206][210]. [203]onto":return
7260 er=0:ifm1<>2thengosub61000
7265 ma=mo:er=0:ifpa(ma)<=0thengosub60618:er=1:goto7290
7266 ify=1then7290
7270 gosub30210:ifer<>0then7000
7280 gosub30610:ifer<>0then7000
7290 return
7300 gosub60910:gosub30210:ifer<>0then7000
7305 gosub30400:ifer<>0then7000
7310 gosub70:po=960:gosub20:print"[151] [215][146]eiter [196][146]rucker [218][146]urueck";
7320 gosub60200:if(x$="w"orx$="[215]")and(bu<pa(ma)+1)thengosub7250:se=0:goto7240
7330 ifx$="d"orx$="[196]"thengosub60800:goto7310
7340 if(x$="z"orx$="[218]")andm1=2thenclose2:close15:return
7350 ifx$="z"orx$="[218]"thenclose2:close15:goto7000
7360 goto7320
7370 dr$=" "+mo$+str$(pa(14)):gosub42100:gosub42300:gosub42110
7380 dr$="[212]ag [212]ext"+left$(lo$,16)+"[194]etrag [206][210]. [203]onto"
7385 dr$=dr$+left$(lo$,17)+"[203]onto % [199]esamt %":gosub42100
7390 gosub42110:zl=zl+5:return
8000 md$="[214]ermoegen / [194]ilanz":m1=7:gosub60100
8003 gosub70:po=880:l=4:au$="[215]elches [202]ahr ([202][202][202][202]): ":gosub60:x$=ei$
8005 ei$="01/"+right$(x$,2):gosub61005
8007 gosub30800:ifer<>0then1000
8010 gosub80:po=320:gosub20:print" [198]1[146] _[192] [197]in- / [193]usgabenbilanz"
8020 print" [198]3[146] _[192] [199]irokontostand eingabe/aendern"
8030 print" [198]5[146] _[192] [193]nlagevermoegen"
8040 print" [198]7[146] _[192] [205]enue"
8050 gosub60300:ifx<1orx>4then8050
8060 onxgoto8500,8070,8100,1000
8070 gosub70:po=880:l=8:au$="[199]irokontostand (1.1.): ":gosub50:x$=ei$
8080 gosub60000:vm$(0)=x$:pa(0)=1:goto8220
8100 zl=1:gosub80
8110 gosub80:po=280:gosub20:print"[149][213]ebersicht [193]nlagevermoegen"
8120 po=360:gosub20:print"[129][206]r[151] [203]ontenname [193]rt [194]etrag [213]pdate"
8130 fori=0to9:ze=i+11:ps=i+zl:x$=right$(" "+str$(ps),2)
8135 po=(ze*40):gosub20:print"[129]"x$
8140 kn$=mid$(vm$(ps),1,11):po=(ze*40)+3:gosub20:print""kn$
8143 fe$=mid$(vm$(ps),53,4):po=(ze*40)+15:gosub20:printfe$
8145 bt$=mid$(vm$(ps),57,8):po=(ze*40)+20:gosub20:printbt$
8147 lu$=mid$(vm$(ps),65,10):po=(ze*40)+29:gosub20:printlu$:next
8150 po=960:gosub20:print"[151][215][146]echsel [218][146]eigen [196][146]ruck [205][146]enue";
8160 gosub60200:ifx$="m"orx$="[205]"then8220
8170 ifx$="z"orx$="[218]"then8240
8180 ifx$="d"orx$="[196]"thengosub60800:goto8150
8190 if(x$="w"orx$="[215]")andzl=1thenzl=11:goto8110
8200 if(x$="w"orx$="[215]")andzl=11thenzl=1:goto8110
8210 goto8160
8220 ifpa(0)=0then8005
8225 gosub30900:ifer<>0then8005
8230 goto8010
8240 gosub70:po=920:l=2:au$="[193]nlagevermoegennr. ":gosub40
8250 a=val(ei$):ifa<zlora>zl+9thengosub60620:goto8240
8260 gosub80:po=240:gosub20:print"[149][213]ebersicht [193]nlagevermoegen [206]r."a
8270 kn$=mid$(vm$(a),1,15):po=320:gosub20:print"[203]ontoname[164][164][164]: [129]"kn$
8280 kr$=mid$(vm$(a),16,12):po=400:gosub20:print"[203]ontonummer[164]: [129]"kr$
8290 gi$=mid$(vm$(a),28,25):po=480:gosub20:print"[199]eldinstitut: [129]"gi$
8300 fe$=mid$(vm$(a),53,4):po=560:gosub20:print"[193]nlageart [198]est/[198]rei: [129]"fe$
8310 bt$=mid$(vm$(a),57,8):po=640:gosub20:print"[194]etrag[164][164][164][164][164][164][164][164][164][164][164][164][164]: [129]"bt$
8320 lu$=mid$(vm$(a),65,10):po=720:gosub20:print"[204]etzte [203]orrektur[164][164][164]: [129]"lu$
8330 bm$=mid$(vm$(a),75,12):po=800:gosub20:print"[194]emerkungen[164][164][164][164][164][164][164][164]: [129]"bm$
8340 po=960:gosub20:print"[151][197][146]ingabe /[193]endern [218][146]urueck [196][146]ruck";
8350 gosub60200:ifx$="z"orx$="[218]"then8110
8360 ifx$="d"orx$="[196]"thengosub60800:goto8340
8370 ifx$="e"orx$="[197]"then8390
8380 goto8350
8390 pa(0)=1:print"[129]";:lu$=ad$:po=741:gosub20:print"[129]"lu$
8400 ei$=kn$:po=334:l=15:au$="[129]":we=4:gosub61500:kn$=ei$:kn$=left$(kn$+lo$,15)
8410 ei$=kr$:po=414:l=12:au$="[129]":we=3:gosub61500:kr$=ei$:kr$=left$(kr$+lo$,12)
8420 ei$=gi$:po=494:l=25:au$="[129]":we=4:gosub61500:gi$=ei$:gi$=left$(gi$+lo$,25)
8430 ei$=fe$:po=581:l=4:au$="[129]":we=4:gosub61500:fe$=ei$:fe$=left$(fe$+lo$,4)
8440 ei$=bt$:po=661:l=8:au$="[129]":we=3:gosub61500:x$=ei$:gosub60000:bt$=x$
8445 gosub20:printx$
8450 ei$=bm$:po=821:l=12:au$="[129]":we=4:gosub61500:bm$=ei$:bm$=left$(bm$+lo$,15)
8460 vm$(a)=kn$+kr$+gi$+fe$+bt$+lu$+bm$:print"";:goto8340
8500 gosub80:po=600:gosub20:print"[129][194]itte warten sie die [194]ilanzdaten werden"
8510 po=600:gosub20:print"[129][194]itte warten sie die [194]ilanzdaten werden"
8520 print"erstellt.":gosub30200:ifer<>0then8005
8530 js(mo)=su(0):js(mo+12)=su(110)
8535 js(25)=0:js(0)=0:fori=1to12:js(0)=js(0)+js(i):js(25)=js(25)+js(i+12):next
8550 gosub80:po=200:gosub20:print"[129][197]innahmen / [193]usgabenbilanz"pa(14)
8560 po=280:gosub20:print"[151][205]onat [197]innahmen [193]usgaben [196]iff."
8565 formo=1topa(13):ze=mo+8:gosub60910
8570 po=(ze*40):gosub20:print""mo$
8580 x$=str$(js(mo)):gosub60000:sp=13:gosub8970
8590 x$=str$(js(mo+12)):gosub60000:sp=22:gosub8970
8600 gi=js(mo)-js(mo+12):x$=str$(gi):gosub60000:sp=32:gosub8970
8610 next:po=840:gosub20:print"[149][193]ufgelaufen"
8620 x$=str$(js(0)):gosub60000::ze=21:sp=13:gosub8970
8630 x$=str$(js(25)):gosub60000:sp=22:gosub8970
8635 gi=js(0)-js(25):x$=str$(gi):gosub60000:sp=32:gosub8970
8640 po=960:gosub20:print"[151][205][146]enue [214][146]ermoegensbilanz [196][146]ruck";
8650 gosub60200:ifx$="[205]"orx$="m"then8010
8660 ifx$="d"orx$="[196]"thengosub60800:goto8640
8670 ifx$="[214]"orx$="v"then8690
8680 goto8650
8690 gosub80:po=280:gosub20:print"[129][214]ermoegensbilanz"pa(14)
8700 po=400:gosub20:print"[199]irokontostand 1.[202]anuar"pa(14)
8710 x$=vm$(0):gosub60000:ze=10:sp=30:gosub8970
8720 po=440:gosub20:print"[197]inahmen aufgelaufen"pa(14)
8730 x$=str$(js(0)):gosub60000:ze=11:sp=30:gosub8970
8740 po=480:gosub20:print"[193]usgaben aufgelaufen"pa(14)
8750 x$=str$(js(25)):gosub60000:ze=12:sp=30:gosub8970
8760 gosub60900:po=520:gosub20:print"[199]irokontostand "mo$pa(14)
8765 gi=(val(vm$(0))+js(0))-js(25)
8770 x$=str$(gi):gosub60000:ze=13:sp=30:gosub8970:fe=0:fs=0
8780 fori=1to20:ifmid$(vm$(i),53,2)="fr"thenfs=fs+val(mid$(vm$(i),57,8))
8790 ifmid$(vm$(i),53,2)="fe"thenfe=fe+val(mid$(vm$(i),57,8))
8795 next
8800 po=600:gosub20:print"[193]nlagevermoegen [198]rei"
8810 x$=str$(fs):gosub60000:ze=15:sp=30:gosub8970
8820 gosub60900:po=640:gosub20:print"[194]arvermoegen im [200]aus"
8830 po=670:l=8:au$="":gosub50:x$=ei$:gosub60000:bt$=x$:ze=16:sp=30:gosub8970
8840 po=680:gosub20:print"[218]wischensumme"
8850 x$=str$(gi+fs+val(bt$)):gosub60000:ze=17:sp=30:gosub8970
8860 po=760:gosub20:print"[193]nlagevermoegen [198]est"
8870 x$=str$(fe):gosub60000:ze=19:sp=30:gosub8970
8880 gosub60900:po=800:gosub20:print"[214]ermoegen am "ud$
8890 x$=str$(gi+fs+val(bt$)+fe):gosub60000:ze=20:sp=30:gosub8970
8900 po=870:gosub20:print"========"
8910 po=960:gosub20:print"[151][205][146]enue [197][146]innahmen/[193]usgabenbilanz [196][146]ruck";
8920 gosub60200:ifx$="[205]"orx$="m"then8010
8930 ifx$="d"orx$="[196]"thengosub60800:goto8910
8940 ifx$="[197]"orx$="e"then8550
8950 goto8920
8970 ifval(x$)<0thenpo=(ze*40)+sp:gosub20:print""x$:return
8980 po=(ze*40)+sp:gosub20:print""x$:return
8999 :goto8999
9000 md$="[198]ix- und [206]achbuchen":m1=8:gosub60100:gosub80
9010 po=320:gosub20:print" [198]1[146] _[192] [206]achbuchen in alten [205]onat"
9020 print" [198]3[146] _[192] [198]ixbuchungen aendern"
9030 print" [198]5[146] _[192] [205]enue"
9040 gosub60300:ifx<1orx>4then9040
9050 onxgoto9100,9200,1000
9100 gosub70
9110 gosub61000:m2=mo:m3=ja
9130 am=pa(13):pa(13)=m2:aj=pa(14):pa(14)=m3:gosub5005:m1=8
9140 gosub70:po=880:gosub20:print"[194]itte warten [211]ummen werden korrigiert"
9150 ma=pa(13):gosub6300
9160 gosub30400:ifer<>0then9000
9170 pa(13)=am:pa(14)=m3
9180 ud$=ad$:gosub30500:ifer<>0then9000
9190 m2=0:m3=0:goto9000
9200 gosub30950:ifer<>0then9000
9210 m3=0:en=0
9220 gosub9900:fori=entoen+12
9230 ze=8+(i-en):po=(ze*40):gosub20:print"[129]"right$(" "+str$(i),3)
9240 po=(ze*40+4):gosub20:print""mid$(fb$(i),13,16)
9250 ifm3=1then9280
9260 po=(ze*40+21):gosub20:printmid$(fb$(i),29,8)
9270 po=(ze*40+32):gosub20:printmid$(fb$(i),37,3):goto9285
9280 po=(ze*40+23):gosub20:printmid$(fb$(i),1,12)
9285 next
9290 gosub60200:ifx$="m"orx$="[205]"then9380
9300 ifx$="v"orx$="[214]"thenen=en+13:goto9350
9310 ifx$="z"orx$="[218]"thenen=en-13:goto9350
9320 ifx$="e"orx$="[197]"then9410
9325 ifx$="d"orx$="[196]"thengosub60800
9330 ifx$="b"orx$="[194]"thenm3=1:goto9220
9335 ifx$="k"orx$="[203]"thenm3=0:goto9220
9340 goto9290
9350 ifen<0thenen=39
9360 ifen+12>51thenen=0
9370 goto9220
9380 ifpa(0)<>0thengosub30970:ifer<>0then9000
9390 goto9000
9410 gosub70:po=880:l=2:au$="[215]elche [198]ixbuchungsnummer ":gosub35
9420 fb=val(ei$):iffb<enorfb>en+12thengosub60622:goto9410
9430 gosub80:po=240:gosub20:print"[129][197]ingabe [198]ixbuchungnr."fb
9435 ifm4=0thengosub9700
9440 po=320:gosub20:print"[194]uchungstext[164]: [129]"tx$
9450 po=400:gosub20:print"[194]etrag[164][164][164][164][164][164][164]: [129]"bt$
9460 po=480:gosub20:print"[203]onto[164][164][164][164][164][164][164][164]: [129]"ko$
9480 po=575:gosub20:print"[202] [198] [205] [193] [205] [202] [202] [193] [211] [207] [206] [196]"
9490 po=615:gosub20:print"a e r p a u u u e k o e"
9500 po=655:gosub20:print"n b z r i n l g p t v z"
9520 po=720:gosub20:print"[194]uchungsmonat: [129]"mt$
9530 po=800:gosub20:print"[194]itte tragen sie unter den [205]onat in dem"
9540 po=840:gosub20:print"gebucht werden soll ein '*' ein."
9542 po=880:gosub20:print"[218]um loeschen des [194]uchungssatzes bitte"
9543 po=920:gosub20:print"den [194]etrag loeschen."
9545 ifm4=1thenm4=0:goto9570
9550 ei$=tx$:po=335:l=16:au$="[129]":we=4:gosub61500:tx$=ei$:tx$=left$(tx$+lo$,16)
9560 ei$=bt$:po=415:l=8:au$="[129]":we=3:gosub61500:x$=ei$:gosub60000:bt$=x$
9563 ifval(bt$)=0thenfb$(fb)=left$(lo$,39):pa(0)=1:goto9220
9565 po=415:gosub20:printbt$
9570 ei$=ko$:po=495:l=3:au$="[129]":we=1:gosub61500:ko$=ei$
9580 x=asc(ko$):ifx=94then9800
9590 x=val(ko$):ifx<0orx>109thenko$="":goto9570
9600 fr=x/10
9620 iffna(fr)=0orx>109orkn$(x)=" "orkn$(x)=""thenko$="":goto9570
9630 ko$=right$("000"+ko$,3):po=495:gosub20:print"[129]"ko$
9640 ei$=mt$:po=735:l=23:au$="[129]":we=4:gosub61500:mt$=ei$:mt$=left$(mt$+lo$,23)
9645 fb$(fb)="":fori=1to23step2
9646 x$="*":ifmid$(mt$,i,1)<>"*"thenx$="-"
9647 fb$(fb)=fb$(fb)+x$:next
9649 fb$(fb)=fb$(fb)+tx$+bt$+ko$
9650 gosub70:po=920:gosub20:print"[151][193]lle [197]ingaben ok ? ([202]/[206])";
9660 gosub60200:ifx$="n"orx$="n"then9550
9670 ifx$="j"orx$="[202]"thenpa(0)=1:goto9220
9680 goto9660
9700 tx$=mid$(fb$(fb),13,16)
9710 bt$=mid$(fb$(fb),29,8)
9720 ko$=mid$(fb$(fb),37,3)
9730 mt$=left$(fb$(fb),1):fori=2to12:mt$=mt$+" "+mid$(fb$(fb),i,1):next
9740 return
9800 zl=-10:gosub52040
9810 gosub60200:ifx$="e"orx$="[197]"thenm4=1:goto9430
9820 goto52000
9900 gosub80:po=240:gosub20:print"[129][206]r. [194]uchungstext [194]etrag [203]onto"
9905 ifm3=1thenpo=263:gosub20:print"[202][198][205][193][205][202][202][193][211][207][206][196] "
9910 po=880:gosub20:print"[214][146]or [205][146]enue [194][146]uchungsmonate";
9920 po=920:gosub20:print"[218][146]urueck [197][146]ingabe [203][146]onto+[194]etrag";
9930 po=960:gosub20:print"[196][146]ruck";:return
30000 fi$="kontenplan":mo$="":x$="r":gosub31000:ifer<>0thenreturn
30010 fori=0to109:input#2,kn$(i):ifkn$(i)=" "thenkn$(i)=""
30020 next:close2:close15:gosub70:return
30100 fi$="@:kontenplan":mo$="":x$="w":gosub31000:ifer<>0thenreturn
30110 fori=0to109:ifkn$(i)=""thenkn$(i)=" "
30120 print#2,kn$(i):goto30020
30200 mo=pa(13)
30210 fi$="summen ":gosub60910:x$="r":gosub31000:ifer<>0thenreturn
30220 gosub61100:fori=0to110:input#2,su(i):goto30020
30300 mo=pa(13)
30310 fi$="@:summen ":gosub60910:x$="w":gosub31000:ifer<>0thenreturn
30320 gosub61100:fori=0to110:print#2,su(i):goto30020
30400 fi$="parameter":mo$="":x$="r":gosub31000:ifer<>0thenreturn
30410 input#2,ud$:fori=0to14:input#2,pa(i):goto30020
30500 fi$="@:parameter":mo$="":x$="w":gosub31000:ifer<>0thenreturn
30510 print#2,ud$:fori=0to14:print#2,pa(i):goto30020
30600 mo=pa(13)
30610 fi$="plan ":gosub60910:x$="r":gosub31000:ifer<>0thenreturn
30620 gosub61100:fori=0to110:input#2,pl(i):goto30020
30700 mo=pa(13)
30710 fi$="@:plan ":gosub60910:x$="w":gosub31000:ifer<>0thenreturn
30720 gosub61100:fori=0to110:print#2,pl(i):goto30020
30800 fi$="vermoegen":mo$="":x$="r":gosub31000:ifer<>0thenreturn
30810 fori=0to25:input#2,js(i):next
30820 fori=0to20:input#2,vm$(i):goto30020
30900 fi$="@:vermoegen":mo$="":x$="w":gosub31000:ifer<>0thenreturn
30910 fori=0to25:print#2,js(i):next
30920 fori=0to20:vm$(i)=left$(vm$(i)+lo$,86)
30930 print#2,vm$(i):goto30020
30950 fi$="fixbuchungen":mo$="":x$="r":gosub31000:ifer<>0thenreturn
30960 fori=0to51:input#2,fb$(i):goto30020
30970 fi$="@:fixbuchungen":mo$="":x$="w":gosub31000:ifer<>0thenreturn
30980 fori=0to51:fb$(i)=left$(fb$(i)+lo$,39)
30990 print#2,fb$(i):goto30020
31000 fi$=fi$+left$(mo$,3)+",s,"+x$:dn$=left$(fi$,len(fi$)-4)
31010 ifx$<>"r"thenei$="geschrieben":dn$=right$(dn$,len(dn$)-2)
31020 ifx$="r"thenei$="gelesen"
31030 gosub60500:ifer<>0thenreturn
31035 open15,8,15:open2,8,2,fi$:gosub60700:ifer<>0thenclose2:close15:return
31040 gosub31100:return
31100 gosub70:ei$="[196]atei "+dn$+"[146] wird "+ei$
31110 po=920:gosub20:printei$;:return
40000 gosub60400:ifer<>0then40190
40005 gosub41000:se=1:gosub41100
40010 gosub61850:dr$="":forx=1to79:dr$=dr$+"=":next:gosub42100
40020 gosub42200:dr$=" [200][160][193][160][213][160][211][160][200][160][193][160][204][160][212][160][211][160][198][160][201][160][206][160][193][160][206][160][218][160][197][160][206][160] ":gosub42100
40030 gosub42300:dr$="":forx=1to79:dr$=dr$+"=":next:gosub42100
40040 dr$=left$(lo$,20)+"[196]atum: "+ad$+left$(lo$,23)+"[211]eite: "+str$(se)
40050 gosub42100:gosub42110:gosub42110:zl=6:gosub42200:dr$=md$:gosub42000
40052 onm1gosub2030,3250,4170,7370,7370,7370
40070 ifse<>1orm1=6thenreturn
40080 se=1:forko=0to100step10:y=0:gosub42110:gosub42110
40090 gosub40200:gosub42100
40095 dr$="":forx=1to79:dr$=dr$+"-":next:gosub42100:zl=zl+4:md=0
40100 fory=1to9:gosub40200
40105 iflen(dr$)<=40andmd=0thengosub42000:zl=zl+.5:md=1:goto40130
40110 iflen(dr$)<=40andmd=1thengosub42100:zl=zl+.5:md=0:goto40130
40120 gosub42100:zl=zl+1
40130 next:iflen(dr$)<=40thengosub42110:zl=zl+.5
40140 ifzl>63and(m1=1orm1=3)thense=se+1:gosub49000:gosub40010
40150 ifzl>60andm1=2thense=se+1:gosub49000:gosub40010
40160 next:ifm1<>2then40180
40170 gosub42110:gosub42110:y=0:ko=0:gosub40200:gosub42100:ko=110:gosub40200
40175 gosub42100:ko=111:gosub40200:gosub42100
40180 gosub49000:close4
40190 onm1goto2010,3000,4000,1000,1000,1000,1000
40200 x=ko+y:gosub50200:dr$=x$+left$(lo$,40-len(x$))
40210 onm1gosub30,3220,4020:return
41000 open4,val(dr$(0)),val(dr$(1)):return
41100 iflen(dr$(4))=0then41120
41110 fordr=1tolen(dr$(4))step4:print#4,val(mid$(dr$(4),dr,3));:next
41120 iflen(dr$(4))=0then41140
41130 fordr=1tolen(dr$(5))step4:print#4,val(mid$(dr$(5),dr,3));:next
41140 return
42000 print#4,dr$;:return
42100 print#4,dr$;
42110 print#4:iflen(dr$(6))=0thenreturn
42120 fordr=1tolen(dr$(6))step4:print#4,chr$(val(mid$(dr$(6),dr,3)));:next
42130 return
42200 iflen(dr$(2))=0thenreturn
42210 fordr=1tolen(dr$(2))step4:print#4,chr$(val(mid$(dr$(2),dr,3)));:next
42220 return
42300 iflen(dr$(3))=0thenreturn
42310 fordr=1tolen(dr$(3))step4:print#4,chr$(val(mid$(dr$(3),dr,3)));:next
42320 return
49000 ifzl<73thenzl=zl+1:gosub42110:goto49000
49010 return
50000 ifzl<0thenzl=100
50010 ifzl+9>109thenzl=0
50020 forxx=0to9:x=xx+zl:ze=xx+10:gosub50200
50030 ifx=zlthen:print"[129]";:goto50050
50040 print"";
50050 onm1gosub30,3080,4090,30,30,30,30
50060 po=(ze*40):gosub20:printx$"":next
50070 printlo$"[145]":return
50100 forxx=0to10:x=xx*10:ze=10+xx
50110 gosub50200
50120 ifx=0then:print"[129]";:goto50140
50130 print"";
50140 onm1gosub30,3080,4090,30,30,30,30
50150 po=(ze*40):gosub20:printx$"":next:return
50200 x$=str$(x):x$=right$("000"+right$(x$,(len(x$)-1)),3)+" "+kn$(x)
50210 x$=x$+left$(lo$,25-len(x$)):return
51000 gosub80:onm1gosub51010,51030,51060,51100,30,51080,51080,51100:return
51010 gosub51900:print"[151][205][146]enue [203][146]orrektur [196][146]ruck";
51020 po=320:gosub20:print"[149][206]r. [203]ontenname":return
51030 gosub51900:print"[151][205][146]enue [196][146]rucker [211][146]umme"
51035 print"[202][146]ournal";
51040 po=240:gosub20:print"[151]"mo$" "pa(14)""
51050 print"[149][206]r. [203]onto [208]lan [193]usg. [204]imit":return
51060 gosub51900:print"[151][205][146]enue [197][146]ingabe [196][146]ruck";
51070 po=240:gosub20:print"[208]lan fuer [151]"mo$" "pa(14)""
51075 po=320:gosub20:print"[149][206]r. [203]ontenname [208]lan [197]ingabe":return
51080 gosub51900:print"[151][205][146]enue [202][146]ournal";
51090 po=320:gosub20:print"[149][206]r. [203]ontenname ":return
51100 gosub51900:print"[151][197][146]ingabe";
51110 po=320:gosub20:print"[149][206]r. [203]ontenname ":return
51900 po=880:gosub20:print"[151][200][146]auptkonten [214][146]or [218][146]urueck"
51920 return
52000 ifx$="h"orx$="[200]"thenzl=-10:gosub52040
52010 ifx$="v"orx$="[214]"thenzl=zl+10:goto52050
52020 ifx$="z"orx$="[218]"thenzl=zl-10:goto52050
52030 onm1goto2080,3040,4060,5230,8020,8020,8020,9810
52040 gosub51000:gosub50100:goto52030
52050 gosub51000:gosub50000:goto52030
52060 gosub60100
53000 po=360:gosub20:print" [198]1 [146] "md$" zeigen":print" [198]3 [146] "md$" drucken"
53010 print" [198]5 [146] [205]enue"
53020 gosub60300:ifx<1orx>3then53020
53030 return
60000 forz=1tolen(x$):ifmid$(x$,z,1)<>","then60020
60010 x$=left$(x$,z-1)+"."+right$(x$,len(x$)-(z))
60020 next
60025 z=val(x$):z=int(z*100+.5)/100:x$=str$(z)
60030 fr=z:iffna(fr)=0andlen(x$)<=2thenx$=x$+".":goto60050
60040 iffna(fr)=0andmid$(x$,len(x$)-2,1)<>"."thenx$=x$+"."
60050 x$=x$+"000"
60060 ifmid$(x$,len(x$)-2,1)<>"."thenx$=left$(x$,len(x$)-1):goto60060
60070 x$=right$(" "+x$,8)
60080 if(z<1andz>-1)andz<>0thenx$=mid$(x$,2,4)+"0"+right$(x$,3)
60090 return
60100 poke53280,15:poke53281,15:gosub60900
60110 print"[147][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][178][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]";
60112 print"[221] [221] [221]";
60114 print"[171][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][179] [221]";
60116 print"[221] [221] [221]";
60120 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][177][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
60130 print"[129][200][193][213][211][200][193][204][212][211][198][201][206][193][206][218][197][206]"spc(3)mo$pa(14)
60140 po=101:gosub20:print"[213]pdate: "ud$
60150 print"[145][156]"md$;:po=141:gosub20:print"[196]atum : "ad$:return
60200 getx$:ifx$=""then60200
60210 return
60300 gosub60200:x=asc(x$)-132
60310 ifza>0thenza=za-(za*2):goto60330
60320 ifza<0thenza=abs(za)
60330 return
60400 fl=0
60405 er=0:print"[155]";:gosub41000:poke768,61:gosub42300:close4:poke768,139
60410 ifst<>-128andst<>-125thenreturn
60430 gosub70:po=920:gosub20:print" [194]itte [196]rucker einschalten !!! ";
60440 gosub61950:iffl=1thener=1:return
60450 iffl=0thenfl=1
60460 goto60405
60500 fl=0
60505 er=0:print"[155]";:open15,8,15:poke768,61:print#15,"i0";:close15:poke768,139
60510 ifst<>-128andst<>-125thenreturn
60530 gosub70:po=920:gosub20:print" [194]itte [198]loppy #8 einschalten !!! ";
60540 gosub61950:iffl=1thener=1:return
60550 iffl=0thenfl=1
60560 goto60505
60602 er$="[194]uchung auf dieses [203]onto nicht moeglich":goto60690
60604 er$="[213]nzulaessiger [212]ag":goto60690
60606 er$="[194]etrag zu gross oder zu klein":goto60690
60608 er$="[213]nzulaessige [203]ontonummer":goto60690
60610 er$="[213]nzulaessiger [205]onat":goto60690
60612 er$="[213]nzulaessiges [196]atum":goto60690
60614 er$="[213]nzulaessiges [200]auptkonto":goto60690
60616 er$="[197]s wurden keine [203]onten definiert":goto60690
60618 er$="[201]n diesem [205]onat wurde nichts gebucht":goto60690
60620 er$="[213]nzulaessige [193]nlagennummer":goto60690
60622 er$="[213]nzulaessige [198]ixbuchungsnummer":goto60690
60690 gosub70:po=960:gosub20:print""er$;:forps=1to1000:next:gosub70:return
60700 er=0:input#15,er:ifer=0thenreturn
60710 ifer=62thener$="[198]alsche [196]iskette":goto60780
60720 ifer=73thener$="[196]iskette altes [202]ahr":goto60780
60770 er$=" [196][160][201][160][211][160][203][160][160]- [197][160][210][160][210][160][207][160][210] !!!":goto60780
60780 gosub70:po=880:gosub20:print" [193][195][200][212][213][206][199] !!! "er$
60795 po=920:gosub20:print"[196]atensicherheit gefaehrdet"
60797 gosub61950:goto1000
60800 gosub60400:ifer<>0thenreturn
60810 gosub41000:gosub41100:close4
60820 poke186,val(dr$(0)):poke185,val(dr$(1)):sys49152:return
60900 mo=pa(13):j=pa(14)
60910 restore:fori=1tomo:readmo$:next:return
61000 gosub70:po=880:gosub20:print"[215]elcher [205]onat, [194]uchungsmonat mit [149][210][197][212][213][210][206][146]"
61002 po=920:l=5:au$="[205]onat ([205][205]/[202][202]): ":gosub60
61003 iflen(ei$)<>5thenei$=lj$:po=935:gosub20:print""ei$
61005 mo=val(left$(ei$,2)):ifmo<1ormo>12thengosub60610:goto61000
61010 ja=val(right$(ei$,2))+1900:ifja=pa(14)then61050
61015 gosub70:po=880:gosub20:print"[194]itte legen [211]ie die [196]atendiskette"
61020 po=920:gosub20:print"von 19"right$(ei$,2)" ein [149][212]aste[146]"
61025 gosub60200:gosub61800:ifmid$(dn$,12,2)=right$(ei$,2)then61045
61030 po=960:gosub20:print"[193][195][200][212][213][206][199] !!! [198]alsche [196]atendiskette[145][145]";
61040 gosub60200:goto61000
61045 gosub30400:ifer<>0then500
61050 ifmo>pa(13)thenmo=pa(13)
61055 return
61100 fori=0to100step10:su(i)=0:pl(i)=0:forx=1to9
61110 su(i)=su(i)+su(i+x):pl(i)=pl(i)+pl(i+x):next:next
61120 su(110)=0:pl(110)=0:fori=10to100step10:su(110)=su(110)+su(i)
61130 pl(110)=pl(110)+pl(i):next
61140 pl(111)=pl(0)-pl(110):su(111)=su(0)-su(110):return
61200 restore:fori=1to12:readx$:next
61210 fori=1tom:readt:next
61220 fr=(j-1984)/4:ifmo=2andfna(fr)=0thent=t+1
61230 return
61300 j=val(right$(da$,4)):mo=val(mid$(da$,4,2)):gosub61200
61310 ifj<pa(14)orlen(da$)<10thenda$=""
61320 ifmo<1ormo>12thenda$=""
61330 ifval(left$(da$,2))>tthenda$=""
61340 return
61400 open15,8,15,"n:haushalt"+str$(pa(14))+",lj"
61410 print#15,"i0":gosub60700:close15:return
61500 iflen(ei$)=0then61600
61510 ifasc(right$(ei$,1))=32thenei$=left$(ei$,len(ei$)-1):goto61500
61520 goto61605
61600 ei$=""
61605 gosub20:printau$left$(lo$,l)
61610 gosub20:printau$ei$left$(lo$,l+1-len(ei$));
61612 gosub20:printau$ei$"[164][157]";
61616 gosub60200:wt=asc(x$)
61620 ifwt=13thenprint" ":goto61760
61630 ifwt=20then61730
61640 iflen(ei$)=lthenx$="":goto61610
61650 ifx$="^"andlen(ei$)=0andwe=1thenei$=x$:print""chr$(20);:return
61660 ifwt>=48andwt<=57then61720
61670 ifwe<=2thenx$="":goto61610
61680 if(wt>=48andwt<=57)or(wt>=44andwt<=46)then61720
61690 ifwe<=3thenx$="":goto61610
61700 if(wt>=32andwt<=95andwt<>34)or(wt>=193andwt<=218)then61720
61710 x$="":goto61610
61720 ei$=ei$+x$:goto61610
61730 x$="":iflen(ei$)=0then61610
61750 ei$=left$(ei$,len(ei$)-1):goto61610
61760 iflen(ei$)=0andwe=4thenei$=" "
61770 iflen(ei$)=0andwe<4thenei$="0"
61780 return
61800 gosub60500:ifer<>0thenreturn
61805 open15,8,15:open2,8,2,"#":gosub60700:ifer<>0thenreturn
61810 print#15,"b-r 2 0 18 0":print#15,"b-p 2 144"
61820 dn$="":er=0:fori=1to16:get#2,x$:dn$=dn$+x$:next:close2:close15
61830 ifleft$(dn$,8)<>"haushalt"thener=1
61840 return
61850 gosub70:po=880:gosub20:print"[194]itte [211]eitenausrichtung am [196]rucker"
61860 po=920:gosub20:print"ueberpruefen"
61870 gosub61950:gosub70:po=920:gosub20:print"[151][196]ruckvorgang laeuft";:return
61950 po=985:gosub20:print"[149][212]aste[146] druecken[145][145]";
61960 gosub60200:gosub70:return
62000 data"[202]anuar","[198]ebruar","[205]aerz","[193]pril","[205]ai","[202]uni","[202]uli","[193]ugust"
62010 data"[211]eptember","[207]ktober","[206]ovember","[196]ezember"
62020 data31,28,31,30,31,30,31,31,30,31,30,31
62030 data169,126,133,184,169,0,160,4,133,113,132,114,133,183
62040 data32,192,255,166,184,32,201,255,162,25,169,13,32,210,255,32
62050 data225,255,240,46,160,0,177,113,133,103,41,63,6,103,36,103,16,2,9,128
62060 data112,2,9,64,32,210,255,200,192,40,208,230,152,24,101,113,133,113,144
62070 data2,230,114,202,208,205,169,13,32,210,255,32,204,255,169,126,32,195,255
62080 data96