home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 11
/
Tiger_Disk_011_19xx_Tiger-Crew-Disk_de_Side_B.d64
/
buchfuehrung
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
18KB
|
653 lines
10 print"[144]"
20 poke53272,23:poke53281,15:poke53280,6
30 print"[147] [205] e n u e a u s w a h l [160][146]":print:print
40 print" 1[146] [194]uchen ":print
50 print" 2[146] [203]onten,[202]ournal ":print
60 print" 3[146] [214]orsteuer/[213][211][212]. ":print
70 print" 4[146] [199]&[214],[194]ilanz,[203]ontenrahmen":print
80 print""
90 print" 5[146] [197]nde":print""
100 print"[144] [194]itte waehlen [211]ie aus [146]";
110 geta$:ifa$=""then110
120 ifa$<"1"ora$>"5"then110
130 ifa$="5"thensys64760
140 onval(a$)goto150,1060,3080,4370
150 printchr$(14):ti$="000000"
160 fd=0:fx=5:ch=3:fp=1:gosub810
170 print"[147] [198]inanzbuchhaltung 1 [146]"
180 print"[144]":ifk1=1thenk1=0:goto800
190 poke198,0:print"[144][194]eenden =0[146]":print"[194]uchen =1[146]"
200 geta$:ifa$=""then200
210 ifa$="0"then640
220 gosub790
230 print"[144][199]ebe letzte [194]uchungsnummer + 1 ein":print
240 input"[194]uchungs-[206]r[146]";f:iff<1orf>664thenprint"[145][145][145]":goto240
250 gosub790
260 input"[214][211][212] herausziehen[146] [206][157][157][157]";vs$:ifvs$<>"[202]"andvs$<>"[206]"thenprint"[145][145][145]":goto260
270 ifvs$="[202]"thengosub700
280 gosub790
290 print"[194]uchungs-[206]r[146] ";f:print
300 print"[196]atum [[212][212].[205][205].[202][202]] [146]";
310 print"[214]organg [146]";
320 print"[203]ontonummer[146]";
330 print"[199]egenkonto [146]";
340 print"[194]etrag [146] ";nt:nt=0
350 input"";a$(1):iflen(a$(1))<>8thenprint"[145][145]":goto350
360 input"";a$(2):a$(2)=left$(a$(2),20)
370 input"";a$(3)
380 input"";a$(4)
390 input"";a$(5):print
400 input"[197]ingabe ok [202]/[206][146] [202][157][157][157]";x$:ifx$<>"[202]"andx$<>"[206]"thenprint"[145][145]":goto400
410 ifx$="[206]"thenfori=1to5:a$(i)="":nexti:goto250
420 gosub850:print
430 iff=664then530
440 input"[205][215][211][212] 7/15/[206] [146]";mw$:ifmw$="7"ormw$="15"thengosub650:goto480
450 ifmw$<>"[206]"andmw$<>"7"andmw$<>"15"thenprint"[145][145]":goto440
460 input"[214][211][212] 7/15/[206] [146]";vs$:ifvs$="7"orvs$="15"thengosub590
470 ifvs$<>"[206]"andvs$<>"7"andvs$<>"15"thenprint"[145][145]":goto460
480 input"weiter buchen [202]/[206][146] [202][157][157][157]";a$:ifa$<>"[202]"anda$<>"[206]"thenprint"[145][145][145]":goto480
490 ifa$="[202]"thenf=f+1
500 ifa$="[202]"andf<665then250
510 ifa$="[202]"andf>664then530
520 goto550
530 gosub790
540 print"[196]iskette belegt":fork=1to5000:nextk:goto170
550 gosub790:print"[206]otiere die letzte [194]uchungsnummer";f:print
560 print"[196]ruecke [211]pace, wenn ok!"
570 getc$:ifc$<>chr$(32)then570
580 goto170
590 f=f+1
600 a$(2)="[214][211][212]"
610 a$(3)="154"
620 a$(5)=str$(int((val(a$(5))*val(vs$)*10+5)/10)/100)
630 gosub850:return
640 close15:close3:print"[147]":print"[210]echenzeit[146] ";ti$:forpo=1to1000:next:goto10
650 f=f+1
660 a$(2)="[205][215][211][212]"
670 a$(4)="184"
680 a$(5)=str$(int((val(a$(5))*val(mw$)*10+5)/10)/100)
690 gosub850:return
700 gosub790:input"7 oder 15[146]";vs$
710 ifvs$="7"thenvs=6.5420564
720 ifvs$="15"thenvs=13.0434783
730 print:input"[194]rutto[146]";bt
740 nt=bt-bt*vs/100:nt=int(nt*100+.5)/100
750 print:print"[206]etto [146] ";nt
760 print"[195]ontinue [196]ruecke [211]pace[145][146]";
770 getvs$:ifvs$<>chr$(32)then770
780 return
790 k1=1:goto170
800 return
810 gosub790:print"[144][204]ege die [198]ibudatendiskette in die [198]loppy"
820 print"[196]ruecke [211]pace, wenn ok!"
830 geta$:ifa$<>chr$(32)then830
840 open15,8,15,"i":open3,8,3,"#":return
850 gosub920
860 print#15,"b-p:";ch;fp
870 forfi=1tofx:ifa$(fi)=""thena$(fi)="*"
880 print#ch,a$(fi);chr$(13);:next
890 print#15,"u2:";ch;fd;ft;fs
900 gosub990
910 return
920 iff<358thenf1=0:f2=22:f3=1:goto960
930 iff>357andf<472thenf1=357:f2=20:f3=19:goto960
940 iff>471andf<580thenf1=471:f2=19:f3=25:goto960
950 iff>579thenf1=579:f2=18:f3=31
960 ft=int(((f-f1)-1)/(f2-1))+f3
970 fs=f-f1-(ft-f3)*f2+(ft-f3-1)
980 return
990 input#15,en,em$,et,es
1000 ifen=0thenreturn
1010 gosub790:print"[197]rror on [196]isk:":print
1020 printen:printem$:printet:printes:print
1030 input"[198]ortsetzen [202]/[206] [202][157][157][157]";x$:ifx$<>"[202]"andx$<>"[206]"thenprint"[145][145]":goto1030
1040 ifx$="[202]"then170
1050 goto640
1060 poke53280,6:poke53281,15
1070 printchr$(14):ti$="000000"
1080 gosub2800
1090 z1=1:fd=0:fx=5:ch=3:fp=1:x=0:d=0:y=0
1100 print"[147] [198]inanzbuchhaltung 2 [146]"
1110 print"[144]":ifk1=1thenk1=0:goto2790
1120 poke198,0:print"[194]eenden=0[146]"
1130 print"[144][202]ournal=1[146]":print"[203]onto =2[146]"
1140 geta$:ifa$=""thengoto1140
1150 ifa$="0"then2190
1160 ifa$="2"then1510
1170 ifa$<>"1"then1140
1180 gosub2780
1190 input"[193]usdrucken [202]/[206][146] [206][157][157][157]";a$:bs=0:print:ifa$<>"[202]"anda$<>"[206]"thenprint"[145][145][145]":goto1190
1200 ifa$="[202]"thenprint"[144][202]ustiere den [196]rucker"
1210 ifa$="[202]"thenprint"[196]ruecke [211]pace, wenn ok!":print
1220 ifa$="[202]"thengetc$:ifc$=""then1220
1230 input"erste [194]-[206]r[146]";ae:ifae<1orae>664thenprint"[145][145]":goto1230
1240 print:input"letzte [194]-[206]r[146]";al:ifal<1oral>664oral<aethenprint"[145][145][145]":goto1240
1250 gosub2780:forf=aetoal
1260 gosub2850
1270 if(f/3=int(f/3))anda$="[202]"thengosub2780:goto1310
1280 iff/3=int(f/3)thenx=1:print:print"[195]ontinue druecke [211]pace[146]"
1290 ifx=1thengetc$:ifc$<>chr$(32)then1290
1300 ifx=1thenk1=1:x=0:gosub2780
1310 z=f
1320 gosub2210
1330 printtab(-p+4)f;tab(13)a$(1):printa$(2)
1340 print"[194]uchung "a$(3);" an "a$(4)
1350 z=val(a$(5))
1360 bs=bs+z
1370 bs=int((bs*1000+5)/10)/100
1380 gosub2210:gosub2650
1390 j=p:b1$=z$
1400 ifz<1thenb1$="0"+right$(a$(5),3)
1410 z=bs
1420 gosub2210:gosub2650
1430 printtab(-j+7)b1$;tab(-p+17)z$
1440 ifa$="[202]"thengosub2290
1450 print:nextf
1460 print
1470 print"[196]atenende"
1480 print:print"[195]ontinue druecke [211]pace[145][146]";
1490 getc$:ifc$<>chr$(32)thengoto1490
1500 goto1090
1510 gosub2780
1520 ifk3=1thenk3=0:print" [203]onto[146] ";""x$"[146]":print:goto1620
1530 ifk2=1thenk2=0:print" [203]onto[146] ";""x$"[146]":print:goto1680
1540 input"[193]usdrucken [202]/[206][146] [206][157][157][157]";a$:bs=0:d=0:print:ifa$<>"[202]"anda$<>"[206]"thenprint"[145][145][145]":goto1540
1550 ifa$="[202]"thengosub6450:open2,4,7:print"[144][202]ustiere den [196]rucker":print
1560 ifa$="[202]"thenprint"[196]ruecke [211]pace, wenn ok!":print
1570 ifa$="[202]"thengetc$:ifc$<>chr$(32)then1570
1580 input"[203]onto[146]";x$:print
1590 input"erste [194]-[206]r[146]";ae:ifae<1orae>664thenprint"[145][145]":goto1590
1600 print:input"letzte [194]-[206]r[146]";al:ifal<1oral>664oral<aethenprint"[145][145][145]":goto1600
1610 k3=1:goto1510
1620 forf=aetoal
1630 gosub2850
1640 ifa$="[202]"andx=0and(z1/10=int(z1/10))thenk2=1:ab=1:goto1510
1650 ifx=0and(z1/10=int(z1/10))thenx=1:ab=1:print:print"[195]ontinue druecke [211]pace[146]"
1660 ifx=1andab=1thengetc$:ifc$<>chr$(32)then1660
1670 ifx=1andab=1thenk2=1:goto1510
1680 ab=0:ifa$="[206]"then1710
1690 ify=0thenprint#2:print#2:print#2:print#2," [203]onto ";x$
1700 ify=0theny=1:d=5
1710 ifx$<>a$(3)then1860
1720 z=f
1730 gosub2210
1740 j=p
1750 z=val(a$(5))
1760 bs=bs-z
1770 bs=int((bs*1000+5)/10)/100
1780 gosub2210:gosub2650
1790 ifz<1thenz$="0"+right$(b$(i),3)
1800 printtab(-j+4)f;tab(6)a$(4);tab(-p+15)z$;tab(20)"[211]":z1=z1+1:x=0
1810 ifa$="[206]"then1860
1820 print#2,f;:print#2,chr$(16)"09"+a$(1);:print#2,chr$(16)"19"+a$(2);
1830 print#2,chr$(16)"42"+a$(3);:print#2,chr$(16)"49an "+a$(4);:z=abs(val(a$(5)))
1840 gosub2440:d=d+1
1850 print#2,chr$(16)bd$;:z=abs(bs):gosub2550:print#2,chr$(16)b2$:gosub2200
1860 ifx$<>a$(4)then2010
1870 z=f
1880 gosub2210
1890 j=p
1900 z=val(a$(5))
1910 bs=bs+z
1920 bs=int((bs*1000+5)/10)/100
1930 gosub2210:gosub2650
1940 ifz<1thenz$="0"+right$(a$(5),3)
1950 printtab(-j+4)f;tab(6)a$(3);tab(-p+15)z$;tab(20)"[200]":z1=z1+1:x=0
1960 ifa$="[206]"then2010
1970 print#2,f;:print#2,chr$(16)"09";a$(1);:print#2,chr$(16)"19";a$(2);
1980 print#2,chr$(16)"42";a$(3);:print#2,chr$(16)"49an ";a$(4);:z=abs(val(a$(5)))
1990 gosub2440:d=d+1
2000 print#2,chr$(16)bd$;:z=abs(bs):gosub2550:print#2,chr$(16)b2$:gosub2200
2010 nextf:fori=1to5:print#2:next
2020 input"[206]eue [196]iskette [202]/[206][146] [206][157][157][157]";c$:print:ifc$<>"[202]"andc$<>"[206]"thenprint"[145][145][145][145]":goto2020
2030 ifc$="[202]"thenclose15:close3:gosub2800
2040 ifc$="[202]"thengosub2780:goto1590
2050 ifbs<0thenbs=-bs:goto2090
2060 ifbs>0thengoto2130
2070 print"[211]aldo"tab(15)"0.00"
2080 goto2160
2090 z=bs
2100 gosub2210:gosub2650
2110 print"[211]aldo"tab(-p+15)z$;tab(20)"[211]"
2120 goto2160
2130 z=bs
2140 gosub2210:gosub2650
2150 print"[211]aldo"tab(-p+15)z$;tab(20)"[200]"
2160 print"[196]atenende":print"[195]ontinue druecke [211]pace[145][146]";
2170 getc$:ifc$<>chr$(32)then2170
2180 close2:goto1090
2190 close15:close3:print"[147]":print"[210]echenzeit[146] ";ti$:forpo=1to1000:next:goto10
2200 ifd=69thenprint#2:print#2:print#2:d=0:return
2210 ifz>99999.99thenp=6:goto2280
2220 ifz>9999.99thenp=5:goto2280
2230 ifz>999.99thenp=4:goto2280
2240 ifz>99.99thenp=3:goto2280
2250 ifz>9.99thenp=2:goto2280
2260 ifz>0.99thenp=1:goto2280
2270 p=0
2280 return
2290 gosub6450:open2,4,7
2300 ifd=0thenprint#2:print#2:print#2:print#2," [202]ournal"
2310 print#2:print#2,f;
2320 print#2,chr$(16)"11";:print#2,a$(1);
2330 print#2,chr$(16)"22";:print#2,a$(2);
2340 print#2,chr$(16)"42";:print#2,a$(3);
2350 print#2,chr$(16)"49an";
2360 print#2,chr$(16)"52";:print#2,a$(4);
2370 z=val(a$(5)):gosub2440
2380 print#2,chr$(16)bd$;
2390 z=bs:gosub2550
2400 print#2,chr$(16)b2$
2410 d=d+1:ifd=69thend=0:print#2:print#2:print#2
2420 close2
2430 return
2440 ifz>99999.99thenp$="58":goto2510
2450 ifz>9999.99thenp$="59":goto2510
2460 ifz>999.99thenp$="60":goto2510
2470 ifz>99.99thenp$="61":goto2510
2480 ifz>9.99thenp$="62":goto2510
2490 ifz>0.99thenp$="63":goto2510
2500 p$="63"
2510 ifz<1thenbd$="640"+right$(b$(i),3):return
2520 gosub2650
2530 bd$=p$+z$
2540 return
2550 ifz>99999.99thenp$="70":goto2620
2560 ifz>9999.99thenp$="71":goto2620
2570 ifz>999.99thenp$="72":goto2620
2580 ifz>99.99thenp$="73":goto2620
2590 ifz>9.99thenp$="74":goto2620
2600 ifz>0.99thenp$="75":goto2620
2610 p$="76"
2620 gosub2650
2630 b2$=p$+z$
2640 return
2650 d1$=str$(z)
2660 d2$=right$(d1$,3)
2670 d3$=left$(d2$,1)
2680 ifd3$="."then2760
2690 d4$=right$(d1$,2)
2700 d5$=left$(d4$,1)
2710 ifd5$="."then2740
2720 z$=d1$+".00"
2730 goto2770
2740 z$=d1$+"0"
2750 goto2770
2760 z$=d1$
2770 return
2780 k1=1:goto1100
2790 return
2800 gosub2780:print"[144][204]ege die [198]ibudatendiskette in die [198]loppy"
2810 print"[196]ruecke [211]pace, wenn ok!"
2820 getaa$:ifaa$<>chr$(32)then2820
2830 open15,8,15,"i":open3,8,3,"#":return
2840 print"[147]"
2850 gosub2940
2860 print#15,"u1:";ch;fd;ft;fs
2870 print#15,"b-p:";ch;fp
2880 gosub3010
2890 forfi=1tofx
2900 input#ch,a$(fi)
2910 if( st and 2 )then2900
2920 nextfi
2930 return
2940 iff<358thenf1=0:f2=22:f3=1:goto2980
2950 iff>357andf<472thenf1=357:f2=20:f3=19:goto2980
2960 iff>471andf<580thenf1=471:f2=19:f3=25:goto2980
2970 iff>579thenf1=579:f2=18:f3=31
2980 ft=int(((f-f1)-1)/(f2-1))+f3
2990 fs=f-f1-(ft-f3)*f2+(ft-f3-1)
3000 return
3010 input#15,en,em$,et,es
3020 ifen=0thenreturn
3030 gosub2780:print"[197]rror on [196]isk:":print
3040 printen:printem$:printet:printes:print
3050 input"[198]ortsetzen [202]/[206] [202][157][157][157]";a$:ifa$<>"[202]"anda$<>"[206]"thenprint"[145][145]":goto3050
3060 ifa$="[206]"then2190
3070 goto1090
3080 poke53280,6:poke53281,15:printchr$(14):ti$="000000"
3090 gosub4090:fd=0:fx=5:ch=3:fp=1
3100 print"[147] [198]inanzbuchhaltung 3 [146]"
3110 ifk1=1thenk1=0:goto4080
3120 poke198,0:print"[144][194]eenden =0[146]"
3130 print"[213][211][212]-[193]nm. =1[146]"
3140 geta$:ifa$=""then3140
3150 ifa$="0"then3820
3160 ifa$<>"1"then3140
3170 gosub4070
3180 print"jaehrl. =0[146]"
3190 print"quartal =1[146]"
3200 print"monatl. =2[146]"
3210 geta$:ifa$=""then3210
3220 b=val(a$):ifb<>0andb<>1andb<>2then3210
3230 ifb=2thenprint:input"[205]onat z.b. 07[146]";m$:goto3310
3240 ifb=1thenprint:input"[209]uartal z.b. [201][201][146]";q$:goto3260
3250 goto3310
3260 ifq$="[201]"thenm$(0)="01":m$(1)="02":m$(2)="03":goto3310
3270 ifq$="[201][201]"thenm$(0)="04":m$(1)="05":m$(2)="06":goto3310
3280 ifq$="[201][201][201]"thenm$(0)="07":m$(1)="08":m$(2)="09":goto3310
3290 ifq$="[201][214]"thenm$(0)="10":m$(1)="11":m$(2)="12"
3300 print"[145][145][145]":goto3240
3310 bs(1)=0:bs(2)=0:bs(3)=0:bs(4)=0:restore
3320 print
3330 input"erste [194]-[206]r[146]";ae:ifae<1orae>664thenprint"[145][145]":goto3330
3340 print:input"letzte [194]-[206]r[146]";al:ifal<1oral>664oral<aethenprint"[145][145][145]":goto3340
3350 gosub4070
3360 forf=aetoal
3370 gosub4140
3380 a$(1)=mid$(a$(1),4,2)
3390 a$(3)=left$(a$(3),3)
3400 a$(4)=left$(a$(4),3)
3410 ifb=0then3470
3420 ifb<>2then3450
3430 ifa$(1)=m$then3470
3440 goto3630
3450 ifa$(1)=m$(0)ora$(1)=m$(1)ora$(1)=m$(2)then3470
3460 goto3630
3470 r=0:ifa$(3)="154"thenr=1:goto3520
3480 ifa$(3)="184"thenr=2:goto3520
3490 ifa$(3)="800"thenr=3:goto3520
3500 ifa$(3)="890"ora$(3)="891"thenr=4:goto3520
3510 ifr=0then3550
3520 z=val(a$(5))
3530 bs(r)=bs(r)-z
3540 bs(r)=int((bs(r)*1000+5)/10)/100
3550 r=0:ifa$(4)="154"thenr=1:goto3600
3560 ifa$(4)="184"thenr=2:goto3600
3570 ifa$(4)="800"thenr=3:goto3600
3580 ifa$(4)="890"ora$(4)="891"thenr=4:goto3600
3590 ifr=0then3630
3600 z=val(a$(5))
3610 bs(r)=bs(r)+z
3620 bs(r)=int((bs(r)*1000+5)/10)/100
3630 nextf
3640 input"[206]eue [196]iskette [202]/[206][146] [206][157][157][157]";a$:ifa$<>"[202]"anda$<>"[206]"thenprint"[145][145][145]":goto3640
3650 ifa$="[202]"thenclose15:close3:gosub4090
3660 ifa$="[202]"thengosub4070:goto3330
3670 gosub4070
3680 forr=1to4
3690 ifbs(r)<0thenx$="-":bs(r)=-bs(r)
3700 z=bs(r)
3710 gosub3830
3720 u$(1)="[214]orsteuer":u$(2)="[205]ehrwertsteuer":u$(3)="[197]rloese"
3730 u$(4)="[199]utschriften/[211]konti"
3740 printu$(r);
3750 ifx$="-"thenx$="+":printtab(10)"-";
3760 printtab(-p+30)z$
3770 print
3780 nextr
3790 print"[195]ontinue druecke [211]pace[146]"
3800 geta$:ifa$<>chr$(32)then3800
3810 goto3100
3820 close15:close3:print"[147]":print"[210]echenzeit[146] ";ti$:forpo=1to1000:next:goto10
3830 ifz>99999.99thenp=6:goto3900
3840 ifz>9999.99thenp=5:goto3900
3850 ifz>999.99thenp=4:goto3900
3860 ifz>99.99thenp=3:goto3900
3870 ifz>9.99thenp=2:goto3900
3880 ifz>0.99thenp=1:goto3900
3890 p=0
3900 gosub3920
3910 return
3920 d1$=str$(z)
3930 d2$=right$(d1$,3)
3940 d3$=left$(d2$,1)
3950 ifd3$="."then4030
3960 d4$=right$(d1$,2)
3970 d5$=left$(d4$,1)
3980 ifd5$="."then4010
3990 z$=d1$+".00"
4000 goto4040
4010 z$=d1$+"0"
4020 goto4040
4030 z$=d1$
4040 ifz<1thenz$="0"+mid$(z$,2,3)
4050 ifz=0thenp=0:z$="0.00"
4060 return
4070 k1=1:goto3100
4080 return
4090 gosub4070:print"[144][204]ege die [198]ibudatendiskette in die [198]loppy"
4100 print"[196]ruecke [211]pace, wenn ok!"
4110 geta$:ifa$<>chr$(32)then4110
4120 open15,8,15,"i":open3,8,3,"#":return
4130 print"[147]"
4140 gosub4230
4150 print#15,"u1:";ch;fd;ft;fs
4160 print#15,"b-p:";ch;fp
4170 gosub4300
4180 forfi=1tofx
4190 input#ch,a$(fi)
4200 if( st and 2 )then4190
4210 nextfi
4220 return
4230 iff<358thenf1=0:f2=22:f3=1:goto4270
4240 iff>357andf<472thenf1=357:f2=20:f3=19:goto4270
4250 iff>471andf<580thenf1=471:f2=19:f3=25:goto4270
4260 iff>579thenf1=579:f2=18:f3=31
4270 ft=int(((f-f1)-1)/(f2-1))+f3
4280 fs=f-f1-(ft-f3)*f2+(ft-f3-1)
4290 return
4300 input#15,en,em$,et,es
4310 ifen=0thenreturn
4320 gosub4070:print"[197]rror on [196]isk:":print
4330 printen:printem$:printet:printes:print
4340 input"[198]ortsetzen [202]/[206] [202][157][157][157]";a$:ifa$<>"[202]"anda$<>"[206]"thenprint"[145][145]":goto4340
4350 ifa$="[202]"then3100
4360 goto3820
4370 poke53280,6:poke53281,15
4380 printchr$(14)
4390 ti$="000000":gosub6170
4400 close15:close3:clr:open15,8,15,"i":open3,8,3,"#":fd=0:fx=5:ch=3:fp=1
4410 print"[147] [198]inanzbuchhaltung 4 [146]"
4420 ifk1=1thenk1=0:goto6160
4430 print"[144][194]eenden=0[146]"
4440 print"[199]+[214] =1[146]":print"[194]ilanz =2[146]":print"[203]-[210] =3[146]"
4450 geta$:ifa$=""then4450
4460 a=val(a$):ifa=0then5690
4470 ifa<>1anda<>2anda<>3then4450
4480 gosub6150
4490 print"[144][202]ustiere den [196]rucker":print:print"[196]ruecke [211]pace, wenn ok!"
4500 geta$:ifa$<>chr$(32)then4500
4510 gosub6150
4520 readak
4530 dimko$(ak-1),kt$(ak-1)
4540 dimsa(ak-1)
4550 fori=0toak-1
4560 readko$(i)
4570 nexti
4580 fori=0toak-1
4590 readkt$(i)
4600 nexti
4610 ifa=3then6070
4620 gosub6150:input"erste [194]-[206]r[146]";ae:ifae<1orae>664thenprint"[145][145]":goto4620
4630 print:input"letzte [194]-[206]r[146]";al:ifal<aeoral>664oral<1thenprint"[145][145][145]":goto4630
4640 gosub6150:forf=aetoal
4650 gosub6220
4660 a$(3)=left$(a$(3),3)
4670 a$(4)=left$(a$(4),3)
4680 fori=0toak-1
4690 ifko$(i)<>a$(3)thengoto4720
4700 sa(i)=sa(i)-val(a$(5))
4710 sa(i)=int((sa(i)*1000+5)/10)/100
4720 ifko$(i)<>a$(4)thengoto4750
4730 sa(i)=sa(i)+val(a$(5))
4740 sa(i)=int((sa(i)*1000+5)/10)/100
4750 nexti
4760 nextf
4770 gosub6150:input"[206]eue [196]iskette [202]/[206][146] [206][157][157][157]";a$:ifa$<>"[206]"anda$<>"[202]"then4770
4780 ifa$="[202]"thenclose15:close3:gosub6170:goto4620
4790 gosub6150
4800 fori=0toak-1
4810 z$=ko$(i)
4820 z$=left$(z$,1)
4830 ifz$="2"orz$="3"orz$="4"orz$="8"thengoto4850
4840 goto4980
4850 ifsa(i)<0thensa(i)=-sa(i):goto4930
4860 ifsa(i)=0thengoto4980
4870 ifa=2then4900
4880 z=sa(i)
4890 s$="78[200]":gosub5700
4900 bg=bg+sa(i)
4910 bg=int((bg*1000+5)/10)/100
4920 goto4980
4930 ifa=2then4960
4940 z=sa(i)
4950 s$="78[211]":gosub5700
4960 bg=bg-sa(i)
4970 bg=int((bg*1000+5)/10)/100
4980 nexti
4990 ifa=2then5080
5000 ifbg<0then5040
5010 z=bg
5020 gosub6020
5030 goto5060
5040 z=-bg
5050 gosub6020
5060 ifa=2then5080
5070 goto5270
5080 gosub6150
5090 ifbg>=0thensa(34)=bg
5100 ifbg<0thensa(35)=bg
5110 fori=0toak-1
5120 ifi=96then5250
5130 z$=ko$(i)
5140 z$=left$(z$,1)
5150 ifz$="2"orz$="3"orz$="4"orz$="8"thengoto5250
5160 ifsa(i)=0thengoto5250
5170 ifsa(i)<0thensa(i)=-sa(i):goto5230
5180 z=sa(i)
5190 s$="78[208]":gosub5700
5200 bs=bs+sa(i)
5210 bs=int((bs*1000+5)/10)/100
5220 goto5250
5230 z=sa(i)
5240 s$="78[193]":gosub5700
5250 nexti
5260 z=bs:gosub6050
5270 goto4400
5280 data98
5290 data"000","001","002","010","020","021","022","030","031","032","040","050","060"
5300 data"070","080","081","085","090","091","092","093","100","101","102","110"
5310 data"111","120","121","130","131","135","136","137","140","141","150","154","160"
5320 data"164","170","180","183","184","190","200","210","220","230","240","250"
5330 data"300","370","371","372","373","374","380","381","382","390","391"
5340 data"400","401","402","403","410","420","421","422","423","430","431","432","440"
5350 data"441","442","450","451","452","460","470"
5360 data"471","480","481","482","483","490","491","800"
5370 data"890","891","900","910","930","940","941","950","951"
5380 data"[214]erwaltungsgebaeude","[214]erkaufsgebaeude","[204]agerhaeuser","[213]nbebaute [199]rundstuecke"
5390 data"[194]ueromaschinen","[208]ersonen- und [204]astenaufzuege","[198]ahrzeuge","[204]adeneinrichtungen"
5400 data"[194]ueroeinrichtungen","[194]ueromaschinen","[203]onzessionen","[194]eteiligungen"
5410 data"[198]orderungen aus [196]arlehen","[200]ypothekenschulden","[197]igenkapital"
5420 data"[194]eteiligungskapital"
5430 data"[210]uecklagen fuer [206]eubauten","[215]ertberichtigungen","[210]ueckstellungen"
5440 data"[193]ktive [208]osten der [202]ahresabgrenzung","[208]assive [208]osten der [202]ahresabgrenzung"
5450 data"[200]auptkasse","[198]ilialkasse","[208]ortokasse","[208]ostscheckkonto"
5460 data"[199]irokonto [204]andeszentralbank","[194]ank","[211]parkasse","[194]esitzwechsel","[211]checks"
5470 data"[211]chuldscheine","[193]ktien","[208]fandbriefe","[198]orderungen an [203]unden"
5480 data"[218]weifelhafte [198]orderungen","[211]onstige [198]orderungen","[214]orsteuer"
5490 data"[214]erbindlichkeiten aus [215]arenlieferungen"
5500 data"[214]erbindlichkeiten aus [196]ienstleistungen","[211]chuldwechsel"
5510 data"[211]onstige [214]erbindlichkeiten","[206]och abzufuehrende [193]bgaben","[213]msatzsteuer"
5520 data"[208]rivatkonten","[193]usserordentliche [193]ufwendungen","[193]usserordentliche [197]rtraege"
5530 data"[200]aus- und [199]rundstuecksaufwendungen","[218]insaufwendungen","[218]insertraege"
5540 data"[215]eitere [193]bgrenzungskonten","[215]areneinkaeufe","[198]rachten bei [194]ezug"
5550 data"[214]erpackungskosten","[204]agergeld","[214]ersicherungskosten"
5560 data"[218]oelle und [203]ursdifferenzen","[211]konti","[210]abatte","[211]onstige [208]reisnachlaesse"
5570 data"[203]ommissionsware","[203]ommittent","[199]ehaelter","[204]oehne","[211]oziale [193]ufwendungen"
5580 data"[213]nternehmerlohn","[205]iete","[200]eizung","[194]eleuchtung","[210]einigung","[210]eparaturen"
5590 data"[199]ewerbesteuer","[194]eitrag zur [201][200][203]","[211]onstige [211]teuern"
5600 data"[203]osten fuer [218]eitungsanzeigen","[203]osten fuer [215]erbeblaetter"
5610 data"[203]osten fuer [204]euchtreklame","[203]fz [211]teuern/[214]ers.","[203]fz [210]eparatur."
5620 data"[212]reibstoff/[207]el","[218]insen","[194]ewirtungskosten"
5630 data"[214]erpflegungsmehraufw.","[206]ebenkosten des [199]eldverkehrs","[194]ueromaterial"
5640 data"[208]ostkosten","[198]ernsprechkosten","[198]achbuecher"
5650 data"[211]onstige [197]inzelkosten","[215]arenverkaeufe","[206]achtraeglich erteilte [199]utschriften"
5660 data"[203]undenskonti","[193]bgrenzungssammelkonto","[205]onats [199]&[214]-[203]onto"
5670 data"[199]ewinn und [214]erlustkonto","[194]ilanzgewinn","[194]ilanzverlust"
5680 data"[197]roeffnungsbilanz","[211]chlussbilanzkonto"
5690 close15:close3:print"[147]":print"[210]echenzeit[146] ";ti$:forpo=1to1000:next:goto10
5700 ifk5=0thengosub6450:open2,4,7:print#2:print#2:print#2
5710 ifk5=0anda=1thenprint#2," [199]ewinn- und [214]erlustrechnung"
5720 ifk5=0anda=1thenprint#2:k5=5
5730 ifk5=0anda=2thenprint#2," [194]ilanz":print#2:k5=5
5740 ifsa(i)<>0thengosub5790
5750 print#2,ko$(i);:print#2,chr$(16)"06";kt$(i);:print#2,chr$(16)x$;
5760 print#2,chr$(16)s$
5770 k5=k5+1:ifk5=69thenprint#2:print#2:print#2:close2:k5=0
5780 return
5790 ifz>99999.99thenp$="65":goto5850
5800 ifz>9999.99thenp$="66":goto5850
5810 ifz>999.99thenp$="67":goto5850
5820 ifz>99.99thenp$="68":goto5850
5830 ifz>9.99thenp$="69":goto5850
5840 p$="70"
5850 gosub5880
5860 x$=p$+z$
5870 return
5880 d1$=str$(z)
5890 d2$=right$(d1$,3)
5900 d3$=left$(d2$,1)
5910 ifd3$="."then5990
5920 d4$=right$(d1$,2)
5930 d5$=left$(d4$,1)
5940 ifd5$="."then5970
5950 z$=d1$+".00"
5960 goto6000
5970 z$=d1$+"0"
5980 goto6000
5990 z$=d1$
6000 ifz<1.00thenz$=" 0"+right$(z$,len(z$)-1)
6010 return
6020 ifbg>=0thenprint#2:print#2,"940 [194]ilanzgewinn";:gosub5790:print#2,chr$(16)x$
6030 ifbg<0thenprint#2:print#2,"941 [194]ilanzverlust";:gosub5790:print#2,chr$(16)x$
6040 return
6050 print#2:print#2,"[194]ilanzsumme";:gosub5790:print#2,chr$(16)x$
6060 fori=1to5:print#2:next:return
6070 gosub6450:open2,4,7
6080 print#2:print#2:print#2:print#2," [203]ontenrahmen":print#2
6090 fori=0toak-1
6100 print#2,ko$(i);:print#2,chr$(16)"11";:print#2,kt$(i)
6110 ifi=63thenprint#2:print#2:print#2:print#2:print#2:print#2
6120 nexti:fori=1to5:print#2:next
6130 close2
6140 goto4400
6150 k1=1:goto4410
6160 return
6170 gosub6150:print"[144][204]ege die [198]ibudatendiskette in die [198]loppy"
6180 print"[196]ruecke [211]pace, wenn ok!"
6190 getc$:ifc$<>chr$(32)then6190
6200 open15,8,15,"i":open3,8,3,"#":return
6210 print"[147]"
6220 gosub6310
6230 print#15,"u1:";ch;fd;ft;fs
6240 print#15,"b-p:";ch;fp
6250 gosub6380
6260 forfi=1tofx
6270 input#ch,a$(fi)
6280 if( st and 2 )then6270
6290 nextfi
6300 return
6310 iff<358thenf1=0:f2=22:f3=1:goto6350
6320 iff>357andf<472thenf1=357:f2=20:f3=19:goto6350
6330 iff>471andf<580thenf1=471:f2=19:f3=25:goto6350
6340 iff>579thenf1=579:f2=18:f3=31
6350 ft=int(((f-f1)-1)/(f2-1))+f3
6360 fs=f-f1-(ft-f3)*f2+(ft-f3-1)
6370 return
6380 input#15,en,em$,et,es
6390 ifen=0thenreturn
6400 gosub6150:print"[197]rror on [196]isk:":print
6410 printen:printem$:printet:printes:print
6420 input"[198]ortsetzen [202]/[206] [202][157][157][157]";a$:ifa$<>"[202]"anda$<>"[206]"thenprint"[145][145]":goto6420
6430 ifa$="[202]"then4400
6440 goto5690
6450 a=peek(768)
6460 open1,4
6470 poke768,185
6480 print#1:close1
6490 poke768,a
6500 ifst<>-128thenreturn
6510 print"drucker ist nicht eingeschaltet!"
6520 poke198,0:wait198,1:poke198,0:goto6450