home *** CD-ROM | disk | FTP | other *** search
- 0 gosub60000:goto60100: ** program by ** maurice randall, submitted to loadstar
- 1 xt=0:forl=0tolg
- 2 if(peek(fs+l)and31)=0then10
- 3 if(peek(fs+l)<48)or(peek(fs+l)>57)then10
- 4 nextl
- 5 forl=lgto0step-1:xt=xt+(peek(fs+l)-48)*10^(lg-l):next
- 6 ifxt=0thenxt$="0":goto8
- 7 xt$=mid$(str$(xt),2)
- 8 iflen(xt$)=lg+1thenreturn
- 9 forl=len(xt$)tolg:xt$="0"+xt$:nextl:return
- 10 gosub3850
- 11 forl=0tolg:pokefs+l,32:next:goto102
- 12 ifcc=1thencc=0:return
- 13 syswi,11,0,24,27,.,2,0,0:return
- 14 gosub3850:forl=1to5:gosub34:co=1:gosub51:next:goto108
- 15 gosub3850:forlk=1to10:syswi,13,29,17,39,.,4,1,0:fordl=1to10:next
- 16 syswi,13,29,17,39,.,4,9,0:fordl=1to10:next:next:return
- 17 gosub3850:forlk=1to10:syswi,19,29,23,39,.,4,1,0:fordl=1to10:next
- 18 syswi,19,29,23,39,.,4,9,0:fordl=1to10:next:next:return
- 19 gosub3850:forlk=1to10:gosub56:print" "
- 20 gosub290:next:return
- 21 gosub3850:forlk=1to7:syswi,7,29,11,39,.,4,1,0:syswi,13,29,17,39,.,4,1,0
- 22 fordl=1to10:next:syswi,7,29,11,39,.,4,9,0:syswi,13,29,17,39,.,4,9,0
- 23 next:return
- 24 syswi,5,1,9,26,.,16,0,0,1:syswi,12,7,16,26,.,16,0,0,15
- 25 syswi,19,7,23,26,.,16,0,0,1:return
- 26 poke214,18:print:printspc(7);:return
- 27 poke646,1:gosub26:printq$:printspc(7)p$:printspc(7)d$
- 28 printspc(7)pr$:printspc(7)x$:return
- 34 syswi,fr,fc,tr,tc,.,4,9,0:wait203,64:return:::::::::::::::
- 37 poke253,160:poke254,170:return
- 38 syswi,4,0,24,27,.,2,0,0:syswi,4,0,10,27,.,4,2,0:syswi,5,1,9,26,.,16,0,0,1
- 39 return
- 40 print"[157]";:ll=11-le:forl=1toll+1:print" ";:nextl
- 41 forl=1toll+1:print"[157]";:nextl:return
- 42 q=45 :n=45.34 :ifq=0orn=0thenex=0:ex$=" 0.00":goto44
- 43 ex=q*n* 1:ex=ex+.005:ex$=str$(ex):ifex<=0thenex=ex-.01:ex$=str$(ex)
- 44 xx=n:gosub60:n$=xx$
- 45 forf=1to8:ifmid$(ex$,f,1)="."thenex$=left$(ex$,f+2):ex(g)=val(ex$)
- 46 nextf:onpeek(1003)goto48,49
- 47 onpeek(1671)and1goto49
- 48 nt=nt+ex(g):poke214,255:print:printspc(28)n$:printspc(228)ex$:return
- 49 tx=tx+ex(g):poke214,255:print:printspc(28)n$:printspc(228)ex$:return
- 50 aa=peek(631)-132:fr=(aa-1)*6+1:fc=29:tr=fr+4:tc=39:fu=4:co=1:ad=.:rv=1
- 51 syswi,fr,fc,tr,tc,ad,fu,co,rv:wait203,64:return:::
- 52 tx= 1 :nt= 0 :
- 53 poke253,182:poke254,148
- 54 forl=1topeek(38048):sys53037:ex(l)= 1.00:nextl:return
- 55 poke214,0:print:return
- 56 poke214,14:print:return
- 57 poke198,0:wait198,1:poke995,0:ifpeek(631)<133orpeek(631)>136thenpoke995,1
- 58 return
- 59 r1=11:r2=11:c1=18:c2=20:gosub65:return
- 60 xx$=str$(abs(xx)+.0005):xx$=str$(val(xx$)*(1-((xx<0)*-2)))
- 61 forl=1to10:ifmid$(xx$,l,1)="."thenxx$=left$(xx$,l+2)
- 62 nextl:ifxx=0thenxx$=" .00"
- 63 return
- 64 poke251,200:poke252,4:return:
- 65 poke1013,rt:poke1014,r1:poke1015,r2:poke1016,c1:poke1017,c2:return
- 66 poke253,64:poke254,181:return
- 67 syswi,fr,fc,tr,tc,ad,fu,co,rv:return
- 68 poke253,0:poke254,160:return
- 75 ifpeek(sa)=32thened=0:return
- 76 forl=satoea:ifint((peek(l)-48)/10)<>0then79
- 77 ifl=sa+2orl=sa+5thened=1:return
- 78 nextl:goto82
- 79 ifl=sa+2andpeek(l)=47thennextl
- 80 ifl=sa+5andpeek(l)=47thennextl
- 81 ed=1:return
- 82 mh=(val(chr$(peek(sa))))*10+(val(chr$(peek(sa+1))))
- 83 ifmh>12ormh<1thened=2:return
- 84 dt=(val(chr$(peek(sa+3))))*10+(val(chr$(peek(sa+4))))
- 85 yr=(val(chr$(peek(sa+6))))*10+(val(chr$(peek(sa+7))))
- 86 ifmh=2andyr/4-(int(yr/4))=0thenmd=29:goto90
- 87 ifmh=2thenmd=28:goto90
- 88 md=(int((mh+2)/10)+1+mh)/2:ifmd-int(md)=0thenmd=31:goto90
- 89 md=30
- 90 ifdt>mdordt<1thened=3:return
- 91 da$=right$(str$(mh),2)+"/"+right$(str$(dt),2)+"/"+right$(str$(yr),2)
- 99 ed=4:return
- 102 ifei=1thenei=0:sys52261:gosub27:ifpeek(1006)=1then592
- 107 poke646,1:poke214,r1-1:print:printspc(c1);:poke649,1
- 108 sys50224
- 120 onpeek(1018)goto130,108,126,150
- 125 goto108
- 126 ifme=1andpeek(631)=169then5000
- 127 goto108
- 130 onrtgoto60150,537,570,5600,822,13065,14265,15586,16050,15780,570
- 150 ifcc=1then14
- 152 onrtgoto108,159,159,108,108,108,108,108,16500,108,108
- 159 gosub50:wait203,64:me=0
- 160 onaagoto562,4300,22000,900
- 180 syswi,11,0,24,27,37120,1,0,0
- 182 syswi,11,0,24,27,37120,2,0,0:return
- 184 syswi,11,0,24,27,37120,8,0,0:return
- 200 print"[147]"
- 201 fc=29:tc=39:co=9:rv=0
- 202 fr=-5:tr=-1:forl=1to4
- 203 fr=fr+6:tr=tr+6:fu=4:gosub67:nextl
- 204 fc=0:fr=0:tr=3:tc=27:fu=4:co=3:gosub67:return
- 210 fk$(1)=" sales ":fk$(2)="[201][206][214][207][201][195][201][206][199]":fk$(3)=" "
- 211 fk$(4)="ck/change":fk$(5)=" default ":fk$(6)="settings "
- 212 fk$(7)=" change ":fk$(8)=" today's ":fk$(9)=" -[196][193][212][197]- "
- 213 fk$(10)=" update ":fk$(11)="[201][206][214][207][201][195][197] #":fk$(12)="-or quit-":goto260
- 214 fk$(1)=" ":fk$(2)=" -[195][200][193][206][199][197]-":fk$(3)=" setting "
- 215 fk$(4)=" restore ":fk$(5)=" default ":fk$(6)=" setting "
- 216 fk$(7)=" ":fk$(8)=" previous":fk$(9)=" menu "
- 217 fk$(10)="make this":fk$(11)=" setting ":fk$(12)="permanent":goto260
- 218 fk$(1)=" start ":fk$(2)=" -[206][197][215]- ":fk$(3)=" invoice "
- 219 fk$(4)="-[210][197][195][193][204][204]- ":fk$(5)=" saved ":fk$(6)=" invoice "
- 220 fk$(7)=" ":fk$(8)=" -[205][193][201][206]- ":fk$(9)=" [205][197][206][213] "
- 221 fk$(10)=" print ":fk$(11)=" -[194][204][193][206][203]- ":fk$(12)=" invoices":goto260
- 222 fk$(1)=" company ":fk$(2)="name and ":fk$(3)=" address "
- 223 fk$(4)=" items & ":fk$(5)=" tax rate":fk$(6)=" defaults"
- 224 fk$(7)=" ":fk$(8)=" -[205][193][201][206]- ":fk$(9)=" [205][197][206][213] "
- 225 fk$(10)=" ":fk$(11)=" printer ":fk$(12)=" settings":goto260
- 226 fk$(1)=" -[208][210][201][206][212]- ":fk$(2)=" this ":fk$(3)=" invoice "
- 227 fk$(4)=" -[211][193][214][197]- ":fk$(5)=" invoice ":fk$(6)=" to disk "
- 228 fk$(7)=" ":fk$(8)=" previous":fk$(9)=" menu "
- 229 fk$(10)="-[195][200][193][206][199][197]- ":fk$(11)=" or ":fk$(12)=" -[210][197][214][201][197][215]-":goto260
- 230 fk$(1)=" toggle ":fk$(2)="device # ":fk$(3)=" & copies"
- 231 fk$(4)=" toggle ":fk$(5)=" printer ":fk$(6)="selection"
- 232 fk$(7)=" ":fk$(8)=" previous":fk$(9)=" menu "
- 233 fk$(10)="customize":fk$(11)=" printer ":fk$(12)=" setting ":goto260
- 234 fk$(1)=" -[208][210][201][206][212]- ":fk$(2)=" this ":fk$(3)=" invoice "
- 235 fk$(4)=" -[197][196][201][212]- ":fk$(5)=" this ":fk$(6)=" invoice "
- 236 fk$(7)=" previous":fk$(8)=" menu ":fk$(9)=" "
- 237 fk$(10)=" print ":fk$(11)=" -[193][204][204]- ":fk$(12)=" invoices":goto260
- 238 fk$(1)=" -[209][213][201][212]- ":fk$(2)=" to ":fk$(3)=" basic "
- 239 fk$(4)=" -[209][213][201][212]- ":fk$(5)=" to ":fk$(6)="[204]oad[211][212][193][210] "
- 240 fk$(7)=" [210][197][212][213][210][206] ":fk$(8)=" to ":fk$(9)=" [208][210][207][199][210][193][205] "
- 241 fk$(10)=" update ":fk$(11)=" invoice ":fk$(12)=" no. ":goto260
- 242 fk$(1)=" -[211][195][210][207][204][204]-":fk$(2)=" items ":fk$(3)="[194][193][195][203][215][193][210][196] "
- 243 fk$(4)=" -[211][195][210][207][204][204]-":fk$(5)=" items ":fk$(6)=" [198][207][210][215][193][210][196] "
- 244 fk$(7)="-[196][197][204][197][212][197]- ":fk$(8)=" this ":fk$(9)=" item "
- 245 fk$(10)=" ":fk$(11)=" -[205][207][210][197]- ":fk$(12)="functions":goto260
- 250 fk$(1)=" [212][207][212][193][204] ":fk$(2)=" equals ":fk$(3)=" "
- 251 fk$(4)="-[195][200][193][206][199][197]- ":fk$(5)="customer ":fk$(6)=" info "
- 252 fk$(7)=" -[197][196][201][212]- ":fk$(8)=" this ":fk$(9)=" item "
- 253 fk$(10)="-[210][197][212][213][210][206]- ":fk$(11)=" to ":fk$(12)=" -[197][196][201][212]- ":goto260
- 260 poke646,9:poke214,1:print:printspc(30)fk$(1):printspc(30)fk$(2)
- 261 printspc(30)fk$(3)
- 262 poke214,7:print:printspc(30)fk$(4):printspc(30)fk$(5)
- 263 printspc(30)fk$(6)
- 264 poke214,13:print:printspc(30)fk$(7):printspc(30)fk$(8)
- 265 printspc(30)fk$(9)
- 266 poke214,19:print:printspc(30)fk$(10):printspc(30)fk$(11)
- 267 printspc(30)fk$(12):return
- 270 gosub55:print"[159][205][193][201][206][160][205][197][206][213]-[155] press desired
- 271 [153]" function key":[142]
- 272 [141]55:[153]"openright$(NULL)(NULL)(NULL)right$lenvalclose(NULL)val(NULL)(NULL)-":[142]
- 274 [141]55:[153]"open(NULL)vallenatn(NULL)(NULL)close(NULL)atn(NULL)valstr$closeright$(NULL)(NULL)(NULL)right$lenval-":[142]
- 276 [141]55:[153]"openright$(NULL)(NULL)(NULL)right$lenright$(NULL)chr$- sys"mc"cmd waitcont in memory
- 277 print"[158]shift \ [146][155]toggles invoices":return
- 278 gosub55:print"[159][195][207][205][208][193][206][217][160][206][193][205][197]/[193][196][196][210][197][211][211]-
- 279 [153]" sys (NULL) waitlist for sample printout":[142]
- 280 [151]214,11:[153]
- 282 [153]" qty:":[153]"part#:":[153]"descr:"
- 283 [153]"price:":[153]"txble:":[142]
- 284 [141]55:[153]"openstr$valascatn(NULL)(NULL)(NULL)close(NULL)val(NULL)(NULL)right$(NULL)chr$(NULL)-":[142]
- 286 [141]55:[153]"openright$(NULL)val(NULL)(NULL)/(NULL)atn(NULL)close(NULL)atn(NULL)valclosestr$valascatn(NULL)(NULL)(NULL)(NULL)-":[142]
- 288 [141]55:[153]"open(NULL)(NULL)right$(NULL)(NULL)val(NULL)close(NULL)val(NULL)(NULL)right$(NULL)chr$(NULL)-":[142]
- 290 [141]56:[153]"open -select a function key- ":[142]
- 291 [141]56:[153]" ":[142]
- 292 [141]55:[153]"openlenleft$atn(NULL)chr$val (NULL)(NULL)right$(NULL)(NULL)val(NULL)close(NULL)val(NULL)(NULL)right$(NULL)chr$(NULL)-":[142]
- 294 [141]55:[153]"open(NULL)(NULL)right$(NULL)closeorclose(NULL)val(NULL)(NULL)(NULL)(NULL)-":[142]
- 300 [139]ft[178]1[167]315
- 301 ft[178]1:[141]9500
- 302 [159]15,8,15
- 303 [159]2,8,2,"0:last inv#,s,r"
- 304 [132]15,en:[139]en[177]0[167][160]2:[160]15:[141]810:[137]308
- 305 [132]2,in$:in[178][197](in$)[170]1:[160]2:[160]15:[139]in[178]100000[167]in[178]0
- 306 lg[178]4:xt[178]in:[141]7:in$[178]xt$:[137]315
- 308 in$[178]xt$:xt$[178][196](in[171]1):[139]in[178]0[167]xt$[178]"99999"
- 310 [141]850:[139][194](1002)[178]1[167][159]2,8,2,"last inv#,s,w":[152]2,xt$:[160]2
- 315 [141]200:[141]270:[141]210
- 320 [151]214,20:[153]:[151]646,7:[153][166]5)dd$
- 360 [141]57:[139][194](995)[167][141]19:[137]360
- 362 [141]50:[145]aa[137]400,12400,380,61000
- 380 f$[178]"":[137]60100
- 400 [141]200:[141]272:[141]218
- 410 [141]57:[139][194](995)[167][141]19:[137]410
- 412 [141]50:[145]aa[137]500,600,300,5500
- 500 [141]200:[141]276:[141]226
- 501 g[178]1:rp[178]1:[141]2400
- 502 [129]l[178]1[164]30:ex(l)[178]0:[130]l:tx[178]0:nt[178]0
- 503 [158]51632:[151]38048,0:[151]38049,1
- 504 [151]178,22:[151]179,151:[151]1006,0:[151]180,191:[151]181,148
- 525 [158]wi,4,0,10,27,.,4,2,0:r1[178]5:r2[178]9:c1[178]1:c2[178]26:rt[178]2:[141]65
- 526 [151]214,3:[153]:[153][166]2)" sold to ":[141]24:i[178]1:[141]20000
- 535 me[178]1:[139]xp[178]1[167]xp[178]0:[137]5000
- 536 [137]102
- 537 [141]12:[158]51889:[139][194](1005)[178]1[167]547
- 540 [151]214,4:[153]:[153][166]1)"lenatn(NULL)left$ (NULL)atn(NULL)val"
- 547 [139]rp[178]3[167]980
- 549 tr[178]10:me[178]1
- 550 fr[178]tr[170]1:fc[178]0:tr[178]fr[170]6:tc[178]27:co[178]7:[141]67:[151]214,10:[153]
- 551 [153][166]2)"sys previous item# ":r1[178]12:r2[178]16:c1[178]7:c2[178]26:[141]65
- 552 fr[178]tr[170]1:tr[178]fr[170]6:co[178]7:[141]67:[151]214,17:[153]
- 553 [153][166]2)"sys current item# 01 "
- 554 r1[178]19:r2[178]23:c1[178]7:c2[178]26:[141]65
- 555 [141]280
- 556 [158]53220:[158]wi,19,1,23,6,.,16,0,0,7:[141]24
- 560 rt[178]3:[137]102
- 562 [139][194](38048)[178]0[167][141]34:[141]3850:[137]596
- 563 [141]180:[141]3900:[139]po[178]1[167]i[178]2:[141]20000:[145][194](40934)[170]1[137]1000,565
- 564 [141]34:[141]184:[137]578
- 565 di[178]1:[137]1000
- 570 [139][194](1007)[175]15[177]0[167][141]3850:[137]580
- 571 [151]646,0:[141]42:[151]1003,0:[151]646,1:[158]51520:[139]rt[178]11[167]4220
- 574 g[178][194](38049)
- 575 [139][194](1006)[178]1[167]593
- 576 [151]646,1:[158]53220:[141]24
- 578 [141]26:me[178]1:[137]108
- 580 [139][194](1007)[175]1[167]l[178]18:[137]585
- 581 [139][194](1007)[175]2[167]l[178]19:[137]585
- 583 [139][194](1007)[175]8[167]l[178]21:[137]585
- 585 [151]646,1:[151]214,l:[153]:[153][166]7);:[137]108
- 592 [158]wi,19,7,23,26,.,2,0,0
- 593 [151]214,18:[153]:[153][166]10)"(NULL)aximum no. of":[153][166]13)"30 items
- 594 printspc(9)"has been reached":printspc(10)"[208][210][197][211][211] [160][196][197][211][201][210][197][196]
- 595 [153][166]11)"asc(NULL)(NULL)len(NULL)right$(NULL)(NULL)close(NULL)val(NULL)":[137]800
- 596 cp[178][194](214):[141]180:[141]20161:[141]20124:i2[178]4:i3[178]14:i4[178]4:[141]20010
- 597 [141]57:[141]184:[151]646,1
- 598 [139]cp[179]18[167][151]214,4:[153]:[153][166]1):[137]108
- 599 [141]26:[141]24:me[178]1:[137]108
- 600 [141]200:[141]274:[141]234:[141]850:[139][194](1002)[178]1[167]604
- 601 [141]3845:i[178]3:[141]20000:[153][166]6)"list-left$right$(NULL) atn(NULL)(NULL) (NULL)val(NULL)-on
- 602 gosub57:goto400
- 604 m=0:sp=1225
- 605 syswi,4,0,19,27,.,18,0,0,7
- 610 open15,8,15
- 612 forli=1to15
- 613 poke214,22:print:print" [204]ooking for saved invoices[145]"
- 614 open5,8,5,"0:inv.save"+str$(li)+",s,r"
- 616 input#15,en:ifen>0thenclose5:gosub632:next:goto640
- 618 ifen=0thengosub636:m=m+1
- 622 gosub632:close5:next:goto640
- 632 poke214,22:print:print" [145]":return
- 636 poke252,int(sp/256):poke251,sp-peek(252)*256:sys52856:sp=sp+40
- 637 poke828+m,li:return
- 640 close15:sys65511:ifm=0then676
- 642 poke214,22:print:print" [213]se 'cursor keys' to":print" select invoice [145]"
- 643 syswi,5,1,19,26,37120,1,0,0
- 644 sp=1224:li=0:poke251,200:poke252,4:sys52828:goto650
- 645 poke252,int(sp/256):poke251,sp-(peek(252)*256):sys52828:goto650
- 646 ifsp<1224then644
- 647 ifsp>1224+(m-1)*40thensp=sp-40:li=li-1:goto645
- 648 poke252,int(sp/256):poke251,sp-(peek(252)*256):sys52828
- 650 gosub57
- 652 ifpeek(631)=17thensys52842:sp=sp+40:li=li+1:goto647
- 653 ifpeek(631)=145thensys52842:sp=sp-40:li=li-1:goto646
- 654 ifpeek(995)thengosub3850:goto650
- 656 gosub50:onaagoto4700,4750,400,4800
- 676 gosub3845
- 678 gosub182:i=2:gosub20020
- 684 gosub57:ifpeek(995)thengosub15:goto684
- 686 gosub50:onaagoto3804,3804,400,3804
- 795 gosub180:gosub3900:ifpo=1theni=2:gosub20000:goto1000
- 796 gosub34:gosub184
- 800 gosub3840:rp=2:gosub57:ifpeek(631)=169then5000
- 802 ifpeek(995)then800
- 804 gosub50:onaagoto795,4300,22000,900
- 810 print"[147]":poke214,7:print:poke646,15
- 812 printspc(6)"[212]he starting invoice number
- 813 [153][166]6)"is not listed on this disk.
- 814 printspc(8)"[208]lease enter the desired
- 815 [153][166]8)"number in the box below.
- 816 print:printspc(6)"([206]umerical characters only)
- 817 [153]:[153][166]11)"00000 thru 99999"
- 818 [158]wi,16,16,18,22,.,4,3,0:[158]wi,17,17,17,21,.,16,0,0,1
- 820 rt[178]5:r1[178]17:r2[178]17:c1[178]17:c2[178]21:[141]65:[151]646,1:[137]102
- 822 fs[178]1721:lg[178]4:[141]1:in$[178]xt$:in[178]xt
- 824 [141]850:[139][194](1002)[178]1[167][159]15,8,15,"s0:last inv#":[160]15
- 825 [142]
- 850 [159]15,8,15:[159]5,8,5,"#"
- 855 [152]15,"u1";5;0;18;0:[152]15,"b-p";5;144
- 860 nm$[178]"":[129]l[178]1[164]8:[161]#5,hn$:[139]hn$[178]""[167]hn$[178][199](0)
- 865 nm$[178]nm$[170]hn$:[130]:[151]1002,0:[139]nm$[179][177]"loadstar"[167][151]1002,1
- 870 [160]5:[160]15:[158]65511:[142]
- 900 [139][194](214)[179]18[167][141]3850:[141]34:[137]108
- 901 [141]34:[141]242
- 910 [158]wi,19,7,23,26,37120,1,0,0
- 918 [158]52005:[158]52063:[141]24
- 920 [141]57:[139][194](995)[167][141]17:[137]920
- 922 [141]50:[145]aa[137]4100,4100,4170,950
- 950 [141]34:[141]250
- 970 [141]57:[139][194](995)[167][141]17:[137]970
- 972 [141]50:[145]aa[137]4000,975,4200,980
- 973 [137]970
- 975 cc[178]1:r1[178]5:r2[178]9:c1[178]1:c2[178]26:rt[178]2:[141]65:rp[178]3:[137]102
- 980 [141]34:[141]201:[141]226
- 985 [158]52261
- 987 rt[178]3:r1[178]19:r2[178]23:c1[178]7:c2[178]26:[141]65:[139]rp[178]4[167]576
- 988 [158]wi,19,7,23,26,37120,8,0,0
- 989 [139][194](38048)[178]30[167]rp[178]2
- 990 [151]646,1:[145]rp[137]578,800,578
- 1000 [141]3650:[141]3670:g[178]1
- 1003 [159]nf,dn,se
- 1004 [152]nf,pg$;
- 1010 [139]bi[178]1[167][141]5700
- 1020 [158]51805
- 1022 [152]nf,l$;:[157]nf
- 1025 [151]251,201:[151]252,4
- 1027 [139]bi[178]0[167]1040
- 1030 [153]" sold to: ";
- 1031 [153]"date: invoice:"
- 1032 [129]l[178]1[164]4:[153][199](10);:[130]l:[137]1110
- 1040 [153]"sold to: ";:[158]51488:[153]" date:"da$" invoice:"in$
- 1042 [153]" ";:[151]251,241:[158]51488:[153]
- 1043 [153]" ";:[151]251,25:[151]252,5:[158]51488:[153]
- 1044 [153]" ";:[151]251,65:[158]51488:[153]
- 1045 [153]" ";:[151]251,105:[158]51488:[153]
- 1110 [153]"-qty-----part no.-----------description-------";
- 1120 [153]"------------net-------------ext---"
- 1130 [139]bi[178]1[167]1210
- 1140 b[178]b[170]1:b4[178](b[171]1)[172]180[170]38079:b3[178](b[171]1)[172]590[170]38678
- 1150 [151]252,[181](b3[173]256):[151]251,b3[171][194](252)[172]256
- 1160 [151]254,[181](b4[173]256):[151]253,b4[171][194](254)[172]256
- 1165 [145]cn[137]1170,1175,1180
- 1170 [151]996,ni:sc[178]ni:[137]1200
- 1175 [145]b[137]1177,1178
- 1177 [151]996,10:sc[178]10:[137]1200
- 1178 [151]996,ni[171]10:sc[178]ni[171]10:[137]1200
- 1180 [145]b[137]1182,1182,1183
- 1182 [151]996,10:sc[178]10:[137]1200
- 1183 [151]996,ni[171]20:sc[178]ni[171]20:[137]1200
- 1200 [158]51665
- 1210 [129]l[178]1[164]14[171]sc:[153][199](10);:[130]l
- 1250 [139]bi[178]0[167]2010
- 1260 [153]"taxable *non-taxable ";
- 1261 [153]"tax total":[137]2050
- 2010 [153]" taxable ";:xx[178]tx(g):[141]60:[153]xx$;
- 2014 [153]" *non-taxable ";:xx[178]nt(g):[141]60:[153]xx$;
- 2016 [139]xr[178]0[167]xx[178]0:[137]2022
- 2018 [139]tx(g)[178]0[167]xx[178]0:[137]2022
- 2019 xx[178]tx(g)[172]xr[170]((1[171]((tx(g)[179]0)[172][171]2))[172].005):xx$[178][196](xx):[129]l[178]1[164]5
- 2020 [139][202](xx$,l,1)[178]"."[167]xx$[178][200](xx$,l[170]2):xx[178][197](xx$)
- 2021 [130]l
- 2022 [141]60:[153]" tax ";:[153]xx$;
- 2026 xx[178]tx(g)[170]nt(g)[170]xx:[153]" total $ ";:[141]60:[153]xx$
- 2040 [139]ff[178]1[167]2060
- 2050 [129]l[178]1[164]9:[152]nf,[199](10);:[130]l:[152]nf
- 2055 [145]ff[170]1[137]2100,2100,2070
- 2060 [152]nf,ff$;:[139]rp[178]6[167]2100
- 2061 [139]di[167]2100
- 2062 [139]b[179]cn[167]2100
- 2063 [152]nf,oo$:[137]2100
- 2070 [139]bi[178]1[167]2100
- 2072 [139]rp[178]6[167]2100
- 2073 [139]b[179]cn[167]2100
- 2074 [139]di[167]2100
- 2075 [129]l[178]1[164][194](40956)[171]1:[152]nf,[199](10);:[130]l:[152]nf
- 2080 [160]nf
- 2100 [139][194](197)[178]60[167][160]nf:[159]nf,dn,se:[152]nf:[160]nf:bi[178]0:di[178]0:[137]18100
- 2101 [160]nf:[139]bi[178]1[167]2105
- 2102 [139]di[177]0[167]2360
- 2103 [160]nf:[139]b[179]cn[167]in[178]in[170]1:[139]in[178]100000[167]in[178]0
- 2104 [139]b[179]cn[167]g[178]g[170]1:lg[178]4:xt[178]in:[141]7:in$[178]xt$:[137]1003
- 2105 [139]bi[178]1[167]nc[178]nc[171]1:[139]nc[177]0[167]1003
- 2120 [139]bi[178]1[167]2260
- 2130 [141]3600
- 2260 a[178]1:ta[178]0:tt[178]0
- 2262 [129]l[178]1[164]3:tx(l)[178]0:nt(l)[178]0:[130]l
- 2265 [139][194](40933)[167]2270
- 2266 [137]2285
- 2270 [151]198,0:[141]3000
- 2285 [139]bi[178]1[167]bi[178]0:[137]400
- 2340 [139]rp[178]6[167]4835
- 2345 [139]rp[178]7[167]400
- 2350 [151]198,0:[137]500
- 2360 [139]di[178]1[167]di[178]2:b[178]b[171]1:[137]1003
- 2362 di[178]1:[139]b[178]cn[167]di[178]0
- 2364 [137]2103
- 2400 [129]l[178]1[164]3:tx(l)[178]0:nt(l)[178]0:ta(l)[178]0:tt(l)[178]0:[130]l:[142]
- 3000 [139]bi[178]1[167][142]
- 3001 [139]rp[178]6[167][142]
- 3005 [153]"load":[151]214,10:[153]:[153][166]10)"(NULL)ear off invoice..."
- 3006 [153]:[153][166]10)"...then, hit any key"
- 3010 [146]198,1
- 3015 [139]rf$[178]""[167]3100
- 3020 [159]nf,dn,se:[152]nf,rf$;:[160]nf:[142]
- 3100 [159]nf,dn,se:[129]l[178]1[164][194](40956):[152]nf,rl$;:[130]:[160]nf:[142]
- 3600 [141]850:[139][194](1002)[178]1[167]3605
- 3601 in[178]in[170]1:[139]in[178]100000[167]in[178]0
- 3602 lg[178]4:xt[178]in:[141]7:in$[178]xt$:[142]
- 3605 [159]15,8,15,"s0:last inv#":[160]15:[159]5,8,5,"0:last inv#,s,w"
- 3610 [152]5,in$:[160]5:in[178]in[170]1:[139]in[178]100000[167]in[178]0
- 3611 lg[178]4:xt[178]in:[141]7:in$[178]xt$:[142]
- 3650 ni[178][194](38048):b[178]0
- 3655 [139]ni[179]11[167]cn[178]1:[142]
- 3660 [139]ni[179]21[167]cn[178]2:[142]
- 3665 [139]ni[179]31[167]cn[178]3:[142]
- 3670 [129]l[178]1[164]3:[129]m[178]1[164]10:tm[178][194]((38619[170]59[172]((l[171]1)[172]10[170]m))[170]56)[175]1:[139]tm[178]1[167]3685
- 3680 nt(l)[178]nt(l)[170]ex(((l[171]1)[172]10)[170]m):[137]3690
- 3685 tx(l)[178]tx(l)[170]ex(((l[171]1)[172]10)[170]m)
- 3690 [130]:[130]:[142]
- 3804 [141]34:[141]15:[137]684
- 3840 [129]l[178]1[164]2:[141]3850:[130]:[142]
- 3845 [129]l[178]1[164]3:[141]3850:[130]:[142]
- 3850 s[178]54272
- 3855 [151]s,0:[151]s[170]1,16:[151]s[170]5,24:[151]s[170]22,104:[151]s[170]23,2:[151]s[170]24,31
- 3860 [151]s[170]4,32[170]1
- 3865 [129]l1[178]1[164]50:[130]
- 3875 [151]s[170]4,0:[151]s[170]24,0
- 3880 [142]
- 3900 po[178]0:lb[178][194](768):hb[178][194](769)
- 3915 [151]768,[194](812):[151]769,[194](813):[141]182
- 3920 [151]144,0:[151]214,15:[153]:[153]"open lenleft$vallen(NULL)close(NULL)(NULL)right$(NULL)lenleft$close(NULL)(NULL)close(NULL)(NULL)right$(NULL)(NULL)val(NULL)"
- 3925 [160]nf:[159]nf,dn,se:[152]nf,"";
- 3930 [151]214,15:[153]:[153]" "
- 3935 [139][194](144)[175]128[178]128[167]3945
- 3940 [151]768,lb:[151]769,hb:[160]nf:po[178]1:[141]182:[142]
- 3945 [151]768,lb:[151]769,hb
- 3950 [129]l[178]1[164]3:[141]3850:[130]
- 3951 [151]198,0:[151]214,13:[153]:[153]"open lenleft$vallen(NULL)closeright$ascclose(NULL)(NULL)right$(NULL)(NULL)val(NULL)
- 3952 print" is[160][213][206][200][207][207][203][197][196] or
- 3953 [153]" (NULL)(NULL)right$(NULL)lenleft$valstr$close(NULL)ascasc...
- 3955 print:print" [212]hen hit [158] space bar [146]":print"[159] to continue----
- 3960 [153]:[153]" left$it any other key"[199](13)" to abort function
- 3970 gosub57:ifpeek(197)=60then3915
- 3974 poke768,lb:poke769,hb:gosub182:return
- 4000 gosub34
- 4001 xx=tx+nt:ifxx=0thenxx$=" .00 ":goto4006
- 4002 xx=nt+tx*(1+xr)
- 4004 xx=xx+.005:ifxx<=0thenxx=xx-.01
- 4005 gosub60:xx$=xx$+mid$(" ",len(xx$))
- 4006 poke214,1:print:printspc(30)"[159] [212][207][212][193][204] ":printspc(30)" equals "
- 4010 printspc(30)"";xx$
- 4012 goto970
- 4100 onaagoto4120,4150
- 4120 ifpeek(38049)=1thengosub3850:goto4130
- 4122 sys51781
- 4124 poke38049,peek(38049)-1
- 4130 gosub34:goto920
- 4150 ifpeek(38049)=peek(38048)+1thengosub3850:goto4130
- 4155 poke38049,peek(38049)+1
- 4160 sys51794:ifpeek(38049)=peek(38048)+2thensys52022
- 4164 gosub34:goto920
- 4170 ifpeek(38049)>peek(38048)thengosub34:gosub3850:goto920
- 4180 sys52375:gosub34
- 4185 ifpeek(1006)=1thenrp=4:poke1006,0
- 4187 g=peek(38049)
- 4190 poke646,0:gosub42:poke1003,0:poke3302,32
- 4191 forl=gtopeek(38048)+1:ex(l)=ex(l+1):nextl:g=peek(38048)+1
- 4192 goto920
- 4200 ifpeek(38049)>peek(38048)thengosub3850:goto4240
- 4210 gosub26:rt=11:poke646,1:n1=peek(38049)-1:gosub18200
- 4212 g=n1+1:onpeek(1951)and1goto4214
- 4213 nt=nt-ex(g):ex(g)=0:goto108
- 4214 tx=tx-ex(g):ex(g)=0:goto108
- 4220 poke38048,peek(38048)-1:n1=peek(38048):gosub18200
- 4240 gosub34:goto980
- 4300 gosub180
- 4301 ifpeek(214)<18thengosub3850:goto4320
- 4302 ifpeek(1005)=0thengosub3850:goto4330
- 4303 goto4340
- 4320 gosub56:print"[158] [217]ou must hit [210][197][212][213][210][206] [146]
- 4321 [153]" on the fifth line, first."
- 4322 [153]:[153]"list left$it any key to continue":[151]646,1
- 4323 [141]57:[141]184:[141]34:[151]214,4:[153]:[153][166]1):[137]108
- 4330 [141]56:[153]"sys atnn invoice without":[153]" a customer name
- 4331 print" cannot be saved.":print"[155] [200]it any key to continue
- 4333 [141]57:[141]184:[141]34:[141]24:[151]646,1
- 4334 [139][194](38048)[178]30[167]800
- 4335 [141]26:me[178]1:[137]108
- 4340 [151]214,255:[153]:[153][166]28)" ":[153][166]228)" "
- 4343 [151]646,0:[151]214,255:[153]:[153][166]28)[196](tx):[153][166]228)[196](nt)
- 4344 [139]mq[167][142]
- 4346 [141]850:[139][194](1002)[178]1[167]4352
- 4347 [141]182:[141]3845:i[178]3:[141]20000:[141]34
- 4348 [153][166]6)"list-left$right$(NULL) atn(NULL)(NULL) (NULL)val(NULL)-on
- 4349 poke646,1:goto4333
- 4352 open15,8,15
- 4354 forl=1to15
- 4358 open5,8,5,"0:inv.save"+str$(l)+",s,r"
- 4362 input#15,en:ifen=0thenclose5:nextl:close15:goto4375
- 4366 ifen=62thenclose5:close15:goto4470
- 4370 close5:nextl:close15
- 4375 syswi,7,29,11,39,.,4,9,0:i=4:gosub3845:gosub20000:goto4333
- 4470 gosub56:print"[158] saving invoice...":open5,8,5,"0:inv.save"+str$(l)+",s,w"
- 4478 sys52672:close5:sys65511:goto500
- 4500 forpo=2to5:poke2080+po-1,asc(mid$(nn$,po,1)):nextpo:return
- 4600 nn$="0000"
- 4610 forpo=1to4:poke2080+po,asc(mid$(nn$,po,1)):nextpo:return
- 4700 ifm=0then3804
- 4710 gosub38
- 4718 gosub20090
- 4720 open5,8,5,"0:inv.save"+str$(peek(828+li))+",s,r"
- 4724 sys51632:sys52875:close5:sys65511
- 4726 ifpeek(38048)=0then4735
- 4727 gosub180:gosub3900:ifpo=0then400
- 4728 open15,8,15,"s0:inv.save"+str$(peek(828+li)):close15
- 4729 gosub52
- 4730 i=2:gosub20000:rp=7:ifpeek(40934)=1thendi=1
- 4731 goto1000
- 4735 syswi,1,29,5,39,.,4,9,0
- 4736 gosub3845:i=5:gosub20000:i=6:gosub20000
- 4743 gosub57:ifpeek(631)=134then4750
- 4744 ifpeek(631)=135then4746
- 4745 gosub21:goto4743
- 4746 syswi,4,0,24,27,.,18,0,0,7
- 4747 syswi,5,1,19,26,37120,8,0,0:goto642
- 4750 ifm=0then3804
- 4752 syswi,4,0,24,27,.,2,0,0:syswi,4,0,10,27,.,4,2,0:gosub24:gosub20090
- 4760 open5,8,5,"0:inv.save"+str$(peek(828+li))+",s,r"
- 4762 sys51632:sys52875:close5:sys65511
- 4764 open15,8,15,"s0:inv.save"+str$(peek(828+li)):close15
- 4765 ifpeek(38048)>0thengosub52
- 4766 g=1:rp=1:gosub2400:poke1006,0:ifpeek(38048)=30thenpoke1006,1
- 4767 poke38049,peek(38048)+1:gosub276:gosub226
- 4770 n1=peek(38048):gosub18200
- 4775 syswi,7,29,11,39,.,4,9,0
- 4776 gosub182:gosub24
- 4780 fu=4:ei=1:poke1005,1:poke214,3:print:printspc(2)" sold to ":goto549
- 4800 ifm=0then3804
- 4801 ph=m:pl=0:rp=6
- 4810 gosub38
- 4820 open5,8,5,"0:inv.save"+str$(peek(828+pl))+",s,r"
- 4824 sys51632:sys52875:close5:sys65511
- 4826 ifpeek(38048)=0then4835
- 4827 gosub180:gosub3900:ifpo=0then400
- 4830 open15,8,15,"s0:inv.save"+str$(peek(828+pl)):close15
- 4831 gosub52
- 4832 i=2:gosub20000:i=1:gosub20020:ifpeek(40934)=1thendi=1
- 4833 goto1000
- 4835 pl=pl+1:ifpl=phthen400
- 4840 goto4820
- 5000 sys51889:ifpeek(1005)=0thenac=0:goto5200
- 5155 ifj1=0thengosub68:j1=1:ao=1:goto5160
- 5156 ifj2=0thengosub37:j2=1:ao=2:goto5160
- 5157 ifj3=0thengosub66:j3=1:ao=0:goto5160
- 5158 gosub3840:goto108
- 5160 mc=mc+1:gosub5300
- 5180 mq=1:gosub4340:mq=0:sys51618:gosub64:sys53128
- 5182 sys51889:sys51935:gosub182:goto501
- 5200 ac=ac+1:ifac=4then5158
- 5215 onaogoto5230,5240
- 5220 ao=1:ifj1=1thengosub68:j1=0:goto5260
- 5225 goto5200
- 5230 ao=2:ifj2=1thengosub37:j2=0:goto5260
- 5235 goto5200
- 5240 ao=0:ifj3=1thengosub66:j3=0:goto5260
- 5245 goto5200
- 5260 mc=mc-1:gosub5300
- 5280 gosub64:sys53169:sys51970:goto4765
- 5300 poke214,0:print:printspc(13)"[158]"mc:return
- 5500 gosub291
- 5505 poke646,15:poke214,3:print:print" [197]nter number of blank":bn=0
- 5510 print" invoices desired..."
- 5520 print" ...from 01-99"
- 5525 print" [197]nter 00 to abort"
- 5530 syswi,8,7,10,10,.,4,3,0:syswi,9,8,9,9,.,16,0,0,1
- 5540 rt=4:r1=9:r2=9:c1=8:c2=9:gosub65:goto102
- 5600 fs=1392:lg=1:gosub1:nc=xt:ifxt=0then400
- 5635 poke214,8:print:printspc(11)"[159][208][210][201][206][212][201][206][199] #"
- 5637 gosub3900:ifpo=0then400
- 5640 i=1:gosub20020
- 5650 sc=1:bi=1:rp=5:goto1003
- 5700 bn=bn+1:poke214,8:print:printspc(23)" "
- 5710 poke214,8:print:printspc(23)""bn
- 5720 return
- 9500 gosub10000:ifen<>63thengosub11000:goto9520
- 9515 d(0)=1
- 9520 gosub10020:ifen<>63thengosub11010:goto9540
- 9530 d(1)=1
- 9540 gosub10050:ifen<>63thengosub11200:goto9570
- 9550 d(2)=1
- 9570 ifd(0)=1thensys49906
- 9580 ifd(1)=1thensys49986:fs=40906:lg=3:gosub1:xr=xt/10000
- 9590 ifd(2)=1thensys50030:onpeek(40929)+1gosub11200,11100,11300
- 9700 return
- 10000 d(0)=0:open15,8,15,"r0:inv.name=inv.name":input#15,en:close15:return
- 10020 d(1)=0:open15,8,15,"r0:inv.item=inv.item":input#15,en:close15:return
- 10050 d(2)=0:open15,8,15,"r0:inv.prnt=inv.prnt":input#15,en:close15:return
- 11000 poke214,6:print:poke646,0
- 11001 restore:forh=0to6:readhl$(h):next
- 11002 syswi,5,0,13,27,.,18,0,0,0
- 11003 print" "hl$(0):print" "hl$(4):print" "hl$(1)qo$hl$(2):print" "hl$(5)
- 11004 print" "hl$(3)qo$:print" "hl$(6)
- 11008 sys51349:return
- 11010 xr=val(xr$)
- 11020 poke214,6:print:syswi,5,0,13,27,.,18,0,0,0:poke646,0:gosub282
- 11021 poke214,6:print
- 11022 printspc(7)q$:printspc(7)p$:printspc(7)d$:printspc(7)pr$:printspc(7)x$
- 11024 printspc(7)xr$
- 11040 sys53184:return
- 11050 data" [204]oad[211][212][193][210] - - [211]oftdisk,
- 11051 [131]"right$nc. ","(NULL)he (NULL)onthl
- 11052 data"y [211]oftware [195]ollection
- 11053 [131]" (NULL).(NULL). peekox 30008
- 11054 data"[211]hreveport, [204][193] 71130-0008
- 11055 [131]" (318) 221-8718
- 11100 e$=chr$(27):pt=1:poke40929,pt:poke40933,1:pg$=e$+chr$(67)+chr$(33)
- 11125 ff=1:ff$=chr$(12):nf=4:se=7
- 11127 poke40931,0:poke40932,nf:rf$=e$+chr$(12):dn=peek(40928)
- 11130 oo$=e$+chr$(74)+chr$(peek(40930)):return
- 11200 e$="":pt=0:poke40929,pt:dn=peek(40928):nf=4:poke40932,nf:se=7
- 11210 pg$="":ff=0:ff$="":oo$="":rl$="":poke40931,0:poke40933,0:return
- 11300 e$="":pt=2:poke40929,pt:dn=peek(40928)
- 11302 nf=peek(40952):poke40932,nf
- 11304 pg$="":rf$="":rl$=""
- 11310 ff=0:ff$="":oo$="":poke40931,peek(40954)
- 11312 poke40933,0:if(peek(40935)and4)=4thenpoke40933,1:ff=2
- 11314 ifpeek(40933)=0then11340
- 11320 if(peek(40935)and8)=0then11330
- 11322 forl=40937to40937+peek(40936)-1:pg$=pg$+chr$(peek(l)):next
- 11324 if(peek(40935)and1)=0then11330
- 11326 forl=40943to40943+peek(40942)-1:rf$=rf$+chr$(peek(l)):next:goto11340
- 11330 forl=40947to40947+peek(40946)-1:rl$=rl$+chr$(peek(l)):next
- 11340 se=peek(40953)
- 11350 return
- 12400 gosub200:gosub284:gosub222
- 12410 gosub57:ifpeek(995)thengosub19:goto12410
- 12420 gosub50:onaagoto12500,14000,300,15000
- 12500 gosub200:gosub278:gosub214
- 12510 sys51367:syswi,6,0,13,27,.,20,15,0,15
- 12600 gosub57:ifpeek(631)=80then12620
- 12602 ifpeek(995)thengosub19:goto12600
- 12610 gosub50:onaagoto13000,12700,12400,12800
- 12620 syswi,6,0,13,27,.,2,0,0:gosub3900:ifpo=0then12500
- 12624 opennf,dn,se:sys51805:print#nf,l$:forl=1to11:print#nf,chr$(10);:next
- 12626 print#nf:closenf:goto12500
- 12700 gosub10000:ifen=63thensys49906:goto12500
- 12710 gosub11000:goto12500
- 12800 gosub850:ifpeek(1002)=1then12810
- 12802 gosub3845:i=3:gosub20000:gosub34:goto12600
- 12810 open15,8,15,"s0:inv.name":close15:sys49922:goto12500
- 13000 poke998,1:print"[147][154] [204]isted below are the current defaults
- 13002 [153]" that are to be printed at the top of":[153]" each invoice.
- 13006 print" [217]ou may make any desired changes and
- 13008 [153]" arrange in any order that you choose.":[141]18700
- 13020 [153]"print#line1-left":[153]"line2-left":[153]"line1-center
- 13023 print"line2-center":print"line1-right":print"line2-right
- 13030 [158]wi,11,13,16,38,.,16,7,0,1:[158]wi,10,12,17,39,.,4,7,0
- 13040 r1[178]11:r2[178]16:c1[178]13:c2[178]38:rt[178]6:[141]65
- 13045 [153]"cont left$it (NULL)val(NULL)(NULL)(NULL)(NULL) wait on the bottom line "
- 13046 [153]" when finished."
- 13050 [158]51373
- 13060 [137]102
- 13065 [158]51355
- 13090 [151]998,0:[137]12500
- 14000 [141]200:[141]286:[141]214
- 14020 [158]53202:[151]214,11:[153]:[153][166]1)"tx/rt:":[158]wi,6,0,13,27,.,16,0,0,15
- 14050 [158]wi,6,0,13,27,.,4,15,0
- 14100 [141]57:[139][194](995)[167][141]19:[137]14100
- 14110 [141]50:[145]aa[137]14200,14300,12400,14400
- 14200 [153]"loadcont (NULL)isted below are the current defaults
- 14202 print" that are automatically entered for you
- 14204 [153]" at the start of each item entry along
- 14205 print" with your state sales tax rate.
- 14206 [153]" (NULL)ou may change these to suit your
- 14208 print" particular application.":gosub18700:sys53208
- 14220 print"[152] 8 char's":print" 20 char's":print" 20 char's
- 14223 [153]" 8 char's":[153]" 1 char.":[153]" 5 char's sys tx/rt:
- 14226 syswi,11,13,16,18,.,16,0,0,7:syswi,11,19,16,38,.,16,0,0,1
- 14235 syswi,10,12,17,39,.,4,7,0
- 14240 r1=11:r2=16:c1=19:c2=38:rt=7:gosub65
- 14242 print"[155][197]xample: [201]f your sales tax rate (tx/rt)
- 14243 [153]" is 4.5 percent, then enter .0450
- 14244 print" ([217]ou must enter 4 decimal places)
- 14245 [153]"cont left$it (NULL)val(NULL)(NULL)(NULL)(NULL) wait on the bottom line":[153]" when finished.
- 14260 goto102
- 14265 fs=1684:lg=3:r1=16:c1=20:gosub1:xr=xt/10000:sys53190:goto14000
- 14300 gosub10020:ifen=63thensys49986:goto14000
- 14310 gosub11010:goto14000
- 14400 gosub850:ifpeek(1002)=1then14410
- 14402 gosub3845:i=3:gosub20000:gosub34:goto14100
- 14410 open15,8,15,"s0:inv.item":close15:sys50002:goto14000
- 15000 gosub200:gosub288:gosub214:gosub15350:gosub15450
- 15100 gosub57:ifpeek(995)thengosub19:goto15100
- 15110 gosub50:onaagoto15200,15600,12400,15120
- 15120 gosub850:ifpeek(1002)=1then15130
- 15122 gosub3845:i=3:gosub20000:gosub34:goto15100
- 15130 open15,8,15,"s0:inv.prnt":close15:sys50046:goto15000
- 15200 gosub200:gosub292:gosub230:gosub15350:gosub15450
- 15250 gosub57:ifpeek(995)thengosub19:goto15250
- 15260 gosub50:gosub34:onaagoto15300,15400,15000,15500.
- 15300 iftg=1thentg=0:goto15330
- 15310 ifdn=4thendn=5:tg=1:gosub15350:goto15250
- 15320 ifdn=5thendn=4:tg=1:gosub15350:goto15250
- 15330 ifpeek(40934)=0thenpoke40934,1:gosub15350:goto15250
- 15340 ifpeek(40934)=1thenpoke40934,0:gosub15350:goto15250
- 15350 poke214,6:print:print"[155]device#:[158]"dn"[155] copies:[158]"peek(40934)+1
- 15352 poke40928,dn:return
- 15400 ifpt=0thengosub11100:gosub15450:goto15250
- 15410 ifpt=1thengosub11300:gosub15450:goto15250
- 15420 ifpt=2thengosub11200:gosub15450:goto15250
- 15450 poke214,8:print:print"[155]printer:":print"[158] "pt$(pt):poke40929,pt:return
- 15500 ifpt=0thengosub3850:goto15590
- 15510 ifpt=2then15700
- 15550 print"[147][154] [193]fter printing an invoice, does the
- 15552 [153]" paper advance so that the perforations
- 15554 print" line up exactly at the tear-off point?
- 15555 [153]" right$f not, then change the setting below
- 15556 print" to advance it more or less.":gosub18700
- 15561 lg=2:xt=peek(40930):gosub7
- 15562 print"[155] [208]aper advances "xt$ " [155]/216th's inch
- 15574 rt[178]8:[141]59
- 15578 [153]"list *valnter number between 000 and 255
- 15580 print"[154] [200]it [210][197][212][213][210][206] [146] when finished
- 15584 [158]wi,10,17,12,21,.,4,7,0:[137]102
- 15586 fs[178]1482:lg[178]2:[141]1:[139]xt[177]255[167]10
- 15587 [151]40930,xt:[141]11130:[137]15200
- 15590 [141]180:[141]56:[153]"open (NULL)his printer selection
- 15591 print" may not be altered.":printspc(6)"-[200]it any key-
- 15594 [141]57:[141]184:[141]34:[137]15250
- 15600 ot[178][194](40930)
- 15601 [141]10050:[139]en[178]63[167][158]50030:pt[178][194](40929):[139]pt[167]15650
- 15605 [151]40930,ot:[139]en[179][177]63[167][151]40928,4
- 15610 [141]11200:[137]15000
- 15650 [139]pt[178]1[167][141]11100:[137]15000
- 15660 [137]15000
- 15700 [151]40935,0:tp[178]0
- 15701 [153]"loadcont":[151]214,4:[153]:[153][166]5)"(NULL)oad your printer with standard
- 15702 printspc(5)"8.5 x 11 computer paper and line
- 15704 [153][166]4)"up the perforations on the bottom
- 15705 printspc(6)"of the sheet at approximately
- 15706 [153][166]2)"7/8ths to 1 inch above the print head.":[141]18500
- 15710 [139]tp[178]1[167]15800
- 15720 tp[178]1:[151]214,4:[153]:[153][166]5)"contascrom this point, do you have to
- 15722 printspc(6)"advance the paper in order to
- 15724 [153][166]11)"tear off the sheet?":[141]18520
- 15725 [139][194](631)[179][177]89[167]15750
- 15726 cs$(0)[178]"(NULL)etting the page length to":cs$(1)[178]"33 lines (or 5.5 inches)"
- 15727 [151]40935,4:[141]18600:[153][166]7)cs$(0)"":[153][166]7)cs$(1)"?"
- 15728 [141]18520:[139][194](631)[179][177]89[167]15734
- 15729 [151]40935,12
- 15730 cs$(2)[178]"(NULL)everse scrolling to top of":cs$(3)[178]"current page"
- 15731 [141]18600:[153][166]6)cs$(2):[153][166]13)cs$(3)"?"
- 15732 [141]18520:[139][194](631)[179][177]89[167]15734
- 15733 [151]40935,13:[137]15740
- 15734 cs$(4)[178]"(NULL)everse linefeeds"
- 15735 [141]18600:[153][166]6)cs$(4)"?":[141]18520
- 15736 [139][194](631)[179][177]89[167][151]40935,0:[137]15750
- 15738 [151]40935,[194](40935)[176]2
- 15740 [139]([194](40935)[175]8)[178]0[167]15748
- 15742 y1[178]0:y2[178]1:ml[178]40936:mn[178]4:[141]16000
- 15744 [139]([194](40935)[175]1)[178]0[167]15748
- 15746 y1[178]2:y2[178]3:ml[178]40942:mn[178]3:[141]16000:[137]15750
- 15748 y1[178]4:y2[178]5:ml[178]40946:mn[178]3:[141]16000
- 15750 [141]18600:[153][166]7)"atnutomatic linefeeds after
- 15752 printspc(11)"carriage returns?":gosub18520
- 15754 ifpeek(631)=89thennf=4:goto15758
- 15756 nf=132
- 15758 poke40952,nf
- 15760 gosub18600:printspc(5)"[195]ommodore mode or [193][211][195][201][201] mode?
- 15762 [153][166]15)"sys len wait or atn wait ?
- 15764 gosub18550:ifpeek(631)=65thenpoke40954,1:goto15768
- 15766 poke40954,0
- 15768 poke214,4:print:printspc(4)"[154][197]nter the secondary address that
- 15770 [153][166]5)"should be sent to your printer
- 15772 printspc(13)"(normally 007)
- 15774 rt[178]10:[141]59
- 15776 [153]:[153]"list *valnter number between 000 and 255"
- 15778 [158]wi,10,17,12,21,.,4,7,0:[137]102
- 15780 fs[178]1482:lg[178]2:[141]1:[139]xt[177]255[167]10
- 15782 se[178]xt:[151]40953,se
- 15790 [139]([194](40935)[175]4)[178]0[167]15850
- 15792 [137]15701
- 15800 [141]3900:[139]po[178]0[167][151]40935,0:[141]11200:[137]15200
- 15805 [153]"load":[151]214,8:[153]:[153][166]4)"listleft$it sys f1 waitlist until the perforations
- 15810 print"line up with the desired tear-off point
- 15812 [153][166]7)"and then hit any other key
- 15815 opennf,dn,se:l=0
- 15820 gosub57:ifpeek(631)=133thenprint#nf," ":l=l+1:goto15820
- 15830 closenf:poke40956,l
- 15850 gosub11300:goto15200
- 16000 print"[147][154] [197]nter the command string from your
- 16002 [153]" printer manual for the feature that
- 16004 print" allows: [158]"cs$(y1)
- 16005 printspc(((44-len(cs$(y2)))/2))""cs$(y2)
- 16006 print"[154] [198]or commands that are 'letters',
- 16008 [153]" use the atn(NULL)lenright$right$ equivalents.":[141]18700
- 16020 [153]"open";:[129]l[178]1[164]mn:[153]"chr$( );";:[130]
- 16030 rt[178]9:[141]59
- 16032 [153]:[153]"list *valnter number between 000 and 255"
- 16034 [153]" (NULL)val(NULL)(NULL)(NULL)(NULL) wait to enter the number...
- 16035 print" f1 [146] to end the string...
- 16040 [158]wi,10,17,12,21,.,4,7,0:ct[178]1:[137]102
- 16050 fs[178]1482:lg[178]2:[141]1:[139]xt[177]255[167]10
- 16055 [139][194](631)[178]133[167][142]
- 16060 [151]214,8:[153]:[153][166]ct[172]5[170](ct[171]1)[172]5)"sys"xt$
- 16070 [151]ml,ct:[151]ml[170]ct,xt:[139]ct[178]mn[167][142]
- 16080 ct[178]ct[170]1:[137]11
- 16500 [139][194](631)[178]133[167][142]
- 16510 [137]108
- 18000 ft[178]0:[137]300
- 18100 [153]"load":[141]56:[153][166]10)"openrelease sys space bar wait"
- 18110 [146]203,64:[141]56:[153]" ((NULL)ou may have to realign your paper)"
- 18120 [153][166]7)"sys-hit any key to continue-":[141]57:[137]400
- 18200 [151]179,[181]((38678[170]n1[172]59)[173]256)
- 18210 [151]178,(38678[170]n1[172]59)[171][194](179)[172]256
- 18220 [151]181,[181]((38079[170]n1[172]18)[173]256)
- 18230 [151]180,(38079[170]n1[172]18)[171][194](181)[172]256:[142]
- 18500 [153][166]7)"list- left$it any key when ready -":[137]18550
- 18520 [153][166]14)"sys (NULL) waites / (NULL) waito":[137]18550
- 18550 [141]57:[153]"load":[151]198,0:[142]
- 18600 [153]"load":[151]214,6:[153]:[153]"contstr$oes your printer support:list":[142]
- 18700 [153]"poketotototototototototototototototototototototototototototototototototototototototo":[142]
- 20000 [145]i[141]20100,20240,20130,20140,20160,20170,20180,20200,20210,20220,20230
- 20010 [151]214,i3:[153]:[129]i1[178]0[164]i2:[153][166]i4)i$(i1):[130]:[142]
- 20020 [145]i[141]20250,20260
- 20030 [137]20010
- 20090 [141]56:[153]"list (NULL)oading invoice...":[142]
- 20100 i2[178]5:i3[178]11:i4[178]2
- 20101 i$(0)[178]"sys-valnter customer name on
- 20102 i$(1)=" first line
- 20105 i$(2)[178]"-ascor 'lenash (NULL)ale', leave
- 20106 i$(3)=" window empty
- 20109 i$(4)[178]"-left$it (NULL)val(NULL)(NULL)(NULL)(NULL) wait on fifth
- 20110 i$(5)=" line when finished":return
- 20124 i$(3)=""
- 20125 i$(4)="[155] -[200]it any key-":return
- 20130 i2=4:i3=16:i4=2
- 20131 i$(0)="[158] [213]nable to perform
- 20132 i$(1)[178]" this operation with
- 20133 i$(2)=" the [204]oad[211][212][193][210] [196]isk!!!
- 20135 i$(3)[178]"open (NULL)lease refer to the
- 20136 i$(4)="supplied documentation":return
- 20140 i2=4:i3=13:i4=2
- 20141 i$(0)="[158] [213][206][193][194][204][197][160][212][207][160][211][193][214][197]"
- 20142 i$(1)=" [212]his program allows a
- 20143 i$(2)[178]"maximum of 15 invoices
- 20144 i$(3)=" saved per disk.
- 20150 i$(4)[178]"list -left$right$(NULL) atn(NULL)(NULL) (NULL)val(NULL)-on":[142]
- 20160 i2[178]2:i3[178]14:i4[178]3
- 20161 i$(0)[178]"sys(NULL)nable to print an
- 20162 i$(1)="invoice without any
- 20163 i$(2)[178]"items listed on it":[142]
- 20170 i2[178]3:i3[178]18:i4[178]3
- 20171 i$(0)[178]"list (NULL)ress 'f3' to edit
- 20172 i$(1)="the invoice or press
- 20173 i$(2)[178]" 'f5' to select a
- 20174 i$(3)=" different invoice":return
- 20180 i2=5:i3=12:i4=2
- 20181 i$(0)="[158] [215][193][210][206][201][206][199][160]!!!
- 20182 i$(1)[178]" (NULL)his will erase the
- 20183 i$(2)=" displayed invoice...
- 20187 i$(3)[178]"cont -left$it 'f5' again-
- 20188 i$(4)="[155] [193]ny other key to
- 20189 i$(5)[178]" 'return to edit'":[142]
- 20200 i2[178]5:i3[178]4:i4[178]1
- 20201 i$(0)[178]"sys((NULL)ote: (NULL)ressing 'f1' does
- 20202 i$(1)=" not erase the program)
- 20203 i$(2)[178]""
- 20204 i$(3)[178]" (NULL)ress 'f7' if the main
- 20205 i$(4)=" program disk has not
- 20206 i$(5)[178]" remained in the drive.":[142]
- 20210 i2[178]2:i3[178]18:i4[178]1
- 20211 i$(0)[178]"cont (NULL)ress _ wait to log-in a
- 20212 i$(1)="new disk. [208]lease refer to
- 20213 i$(2)[178]"the supplied documentation":[142]
- 20220 i2[178]1:i3[178]18:i4[178]2
- 20221 i$(0)[178]"open(NULL)he (NULL)oad(NULL)(NULL)atn(NULL) str$isk must be
- 20222 i$(1)=" in the drive...":return
- 20230 i2=1:i3=18:i4=2
- 20231 i$(0)="[159][213]nable to return to this
- 20232 i$(1)[178]" (NULL)oad(NULL)(NULL)atn(NULL) str$isk...":[142]
- 20240 i2[178]2:i3[178]14:i4[178]3
- 20241 i$(0)[178]"sys -(NULL)lease (NULL)ait-
- 20243 i$(1)="[155][208]rinting [201]nvoice
- 20247 i$(2)[178]" & updating right$nv#":[142]
- 20250 i2[178]0:i3[178]23:i4[178]0
- 20251 i$(0)[178]"hold sys space bar wait to aborton":[142]
- 20260 i2[178]4:i3[178]12:i4[178]2
- 20261 i$(0)[178]"sys (NULL)here are no ivoices
- 20262 i$(1)=" stored on this disk...
- 20264 i$(2)[178]"list (NULL)o try another disk,
- 20265 i$(3)="press 'f5' and then 'f3'
- 20266 i$(4)[178]"to reenter this routine":[142]
- 22000 [139][194](214)[179]18[167]400
- 22010 [141]3845:[141]180:i[178]7:[141]20000
- 22020 [141]57:[139][194](631)[178]135[167]400
- 22030 [141]34:[141]184:[139][194](38048)[178]30[167]800
- 22035 [141]26:[141]24:[151]646,1:me[178]1:[137]108
- 60000 [153]"load":[151]53280,0:[151]53281,0:[151]646,1:[153][199](14):[151]657,128
- 60010 [151]51,0:[151]52,145:[151]53,234:[151]54,144:[151]55,0:[151]56,145
- 60050 pt$(0)[178]"lenomm. 1525 & compatibles":pt$(1)[178]"(NULL)(NULL)atn(NULL)close(NULL)(NULL)1000len/compatibles
- 60052 pt$(2)="[207][212][200][197][210] [208][210][201][206][212][197][210][211] "
- 60055 dn=4:poke40928,dn:pt=0:poke40930,134:poke40934,0:poke40935,0:poke40952,7
- 60060 q$="1":p$="":d$="":pr$="":x$="[217]":xr$=".0400":forl=1to20:l$=l$+"----":next
- 60085 poke1003,0:poke998,0:dimex(32):dimfk$(12)
- 60086 wi=49152:cs$(5)="":qo$=chr$(34):ifpeek(1019)<>1then62000
- 60099 poke1019,0:return
- 60100 print"[147]"spc(85)"[155][197]nter today's date in the following"
- 60110 print"format- mo/da/yr"
- 60120 re=1:syswi,6,14,8,23,.,4,15,0:
- 60130 poke214,6:print:printspc(4)"[155]example-- [221]01/01/89"
- 60135 poke214,18:print:printspc(8)"[158]"er$
- 60136 poke214,18:print:printspc(8)"[158]"f$
- 60140 syswi,10,14,12,23,.,4,3,0:syswi,11,15,11,22,.,16,0,0,1
- 60142 r1=11:r2=11:c1=15:c2=22:rt=1:gosub65:goto102
- 60150 sa=1479:ea=1486:gosub75
- 60151 er$="[158] "
- 60152 onedgoto60161,60162,60163,60170
- 60160 f$="[158] [206][207][160][211][208][193][195][197][211][160][193][204][204][207][215][197][196] ":gosub3850:goto60100
- 60161 f$="[158] [201][206][195][207][210][210][197][195][212][160][198][207][210][205][193][212] ":gosub3850:goto60100
- 60162 f$="[158]01 thru 12 for the month":gosub3850:goto60100
- 60163 f$="[158]01 thru"+str$(md)+" for the day ":gosub3850:goto60100
- 60170 poke214,18:printspc(8)er$
- 60172 print"[158][145] [214]alid [197]ntry--[195]orrect? y/n":poke646,1
- 60174 gosub57:ifpeek(631)=89then60200
- 60175 f$="":goto60100
- 60200 onmhgoto60211,60212,60213,60214,60215,60216
- 60201 mh=mh-6
- 60202 onmhgoto60217,60218,60219,60220,60221,60222
- 60211 f$="[202]anuary":goto60225
- 60212 f$="[198]ebruary":goto60225
- 60213 f$="[205]arch":goto60225
- 60214 f$="[193]pril":goto60225
- 60215 f$="[205]ay":goto60225
- 60216 f$="[202]une":goto60225
- 60217 f$="[202]uly":goto60225
- 60218 f$="[193]ugust":goto60225
- 60219 f$="[211]eptember":goto60225
- 60220 f$="[207]ctober":goto60225
- 60221 f$="[206]ovember":goto60225
- 60222 f$="[196]ecember":goto60225
- 60225 yr$=mid$(str$(yr),2,2):iflen(yr$)<2thenyr$="0"+yr$
- 60230 dd$=f$+str$(dt)+",'"+yr$
- 60235 print"[147]"
- 60240 poke214,19:print:print"[158] [215]ait one moment please... ":poke646,1
- 60250 goto300
- 60500 gosub3840:print"[147]":gosub56:print"[159] [217]ou still have invoices in memory[155]
- 60510 [153]"left$it sys shift \ waitlist to edit...":[153][166]8)"-any other key to quit-
- 60520 gosub57:return
- 60600 xp=1:print"[147]":gosub56:printspc(11)"[153][197][216][208][210][197][211][211][160][210][207][213][212][197] !!!":forl=1to300:next
- 60610 goto500
- 61000 gosub200:gosub294:gosub238:i=8:gosub20000:i=9:gosub20000
- 61008 gosub57:ifpeek(631)=95then18000
- 61009 ifpeek(995)thengosub19:goto61008
- 61015 gosub50:onaagoto61020,62300,300,61100
- 61020 ifmc=0then61024
- 61021 gosub60500:ifpeek(631)=169then60600
- 61024 gosub61025:end
- 61025 print"[144][147]":poke53280,1:poke53281,1
- 61030 forl=1to30:next:poke53281,0:poke53280,0:printspc(210);spc(249);".
- 61050 [129]l[178]1[164]400:[130]:[151]56,160:[153]"load":[151]808,237:[151]657,0:[151]198,0
- 61080 [151]649,10:[158]52643:[151]55496,1:[151]55536,1:[142]
- 61100 [153]"load":[141]850:[139][194](1002)[178]1[167]61120
- 61104 [141]3845:i2[178]4:i3[178]7:i4[178]8:[141]20131:[141]20010
- 61106 [153][166]12)"list-left$right$(NULL) atn(NULL)(NULL)close(NULL)val(NULL)-":[141]57:[137]61000
- 61120 [151]214,12:[153]:[153][166]7)"sysupdating invoice number..."
- 61125 [159]15,8,15,"s0:last inv#":[160]15:[159]5,8,5,"0:last inv#,s,w"
- 61126 [139]in[178]0[167][152]5,"99999":[160]5:[137]61140
- 61130 [152]5,[196](in[171]1):[160]5
- 61140 [151]214,12:[153]
- 61150 [153][166]3)"open-right$nvoice number update completed-":[137]61106
- 62000 [153]"load":[141]3845:[153][166]82)"def(NULL)(NULL)valatn(NULL)valclose(NULL)(NULL)(NULL)val---
- 62010 print" [198]or this program to work properly,
- 62015 [153]" enter- load"qo$"0:inv.boot"qo$",8 ":[153]" and then (NULL)(NULL)(NULL)
- 62025 print"[152] [215]ait a few moments- this program will":print" do it for you...
- 62035 [129]l[178]1[164]600:[130]:[151]214,12:[153]
- 62050 [153][166]10)"printatn(NULL)(NULL)(NULL)(NULL)atn(NULL)right$len (NULL)(NULL)atnstr$ & (NULL)(NULL)(NULL)":[129]l[178]1[164]200:[130]
- 62070 [153]"sys (NULL)lease (NULL)ait-- (NULL)oading peekoot (NULL)rogram":[147]"0:inv.boot",8,1:[128]
- 62300 [141]850:[139][194](1002)[178]0[167]62302
- 62301 [141]182:[141]3840:i[178]10:[141]20000:[141]34:[137]61008
- 62302 [139]mc[178]0[167]62305
- 62303 [141]60500:[139][194](631)[178]169[167]60600
- 62305 [159]15,8,15,"r0:hello connect=hello connect":[132]15,en:[160]15
- 62308 [139]en[178]63[167]62320
- 62310 [141]182:[141]3840:i[178]11:[141]20000:[141]34:[137]61008
- 62320 [141]61025:[153]"load":[153]"stopload"qo$"hello connect"qo$",8"
- 62340 [153]"run":[151]631,13:[151]632,13:[151]206,12:[151]647,0:[151]198,2:[128]
-