0 ' *** TIME BILLER *** 1 ' A Time and Billing Program 2 ' for Professionals. (Reformatted for 3 ' Model 100 - John A. Levin, 3-10-86) 4 ' Copyright (C) April 1985 5 ' David Huntington Williams 6 ' Feel free to copy and use but 7 ' not for resale. 8 IPL"biller.ba" 9 CLEAR256 10 CLS:CLOSE 20 PRINT@41," *** TIMEBILLER 100 ***" 30 PRINT" you may..(f1) enter start time" 40 PRINT" .........(f2) enter end time" 50 PRINT" .........(f3) print to screen" 60 PRINT" .........(f4) send to file" 65 LINE(0,0)-(239,63),1,B:LINE(2,2)-(237,61),1,B:LINE(4,4)-(235,59),1,B 70 KEY ON 80 ONKEYGOSUB100,200,500,700 92 PRINT@250," Choose function"; 97 IFINKEY$<>""THEN MENU 98 GOTO92 100 CLS:CLOSE 112 PRINT@165,"client's name ";:INPUTCLIENT$ 114 PRINT@165," " 115 LINEINPUT"activity - ";ACT$ 116 BILL$=TIME$:CLOSE 117 OPEN"Time.do"FORINPUTAS1:INPUT#1,P$:FOR X=1TO3:INPUT#1,A$:NEXT 118 IFA$<>"DONE"THENCLS:PRINT@200,P$;" STILL OPEN ":FORX=1TO1000:NEXT:CLOSE:GOTO10 119 CLOSE:OPEN "time.do"FOROUTPUTAS1 120 PRINT#1,CLIENT$ 122 PRINT#1,ACT$ 124 PRINT#1,BILL$ 125 PRINT#1,"OPEN" 126 CLOSE#1 128 GOTO10 130 RETURN 200 CLS 210 OPEN"time.do"FORINPUTAS1 220 INPUT#1,CLIENT$ 230 LINEINPUT#1,ACT$ 235 INPUT#1,BILL$ 236 INPUT#1,Q$:IFQ$="DONE"THEN900 240 PRINT@165,"working on - ";CLIENT$ 245 PRINT;ACT$ 248 PRINT"you started at - ";BILL$ 250 INPUT"are you finished ";T$ 251 IFT$<>"Y"ANDT$<>"y"THENCLOSE:GOTO10 254 PAY$=TIME$ 255 CLOSE:OPEN"time.do"FOROUTPUTAS1 256 PRINT #1,CLIENT$:PRINT#1,ACT$:PRINT#1,BILL$:PRINT#1,"DONE" 257 CLOSE 258 OPEN"log.do"FORAPPENDAS1 260 CLS 265 PRINT@165,"logging ";CLIENT$;" to file." 268 FORX=1TO500:NEXT 272 PRINT#1,DATE$ 275 PRINT#1,CLIENT$:PRINT#1,ACT$ 280 PRINT#1,"begin":PRINT#1,BILL$ 290 PRINT#1,"end":PRINT#1,PAY$ 300 HR=VAL(LEFT$(PAY$,2))-VAL(LEFT$(BILL$,2)) 310 IFVAL(LEFT$(PAY$,2))