home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG102.ARC
/
CHECKOFF.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
1KB
|
51 lines
*CHECKOFF.PRG
*TO CHECK OFF CHEQUES AS PRESENTED
ERASE
STORE 0 TO CHEQUE
USE GENLED INDEX CHQNUM
DO WHILE T
ERASE
@ 5,0 SAY 'WHAT IS CHEQUE NUMBER TO CHECK OFF (ZERO) 0 TO QUIT';
GET CHEQUE PICT '!!!!!!'
READ
IF CHEQUE=0
RETURN
ENDIF
STORE STR(CHEQUE,10) TO CHEQ
FIND &CHEQ
IF #=0
? chr(7)
@ 7,0 SAY 'CHEQUE NOT FOUND PROBABLY NOT ENTERED YET TRY AGAIN , PRESS ANY ;
KEY '
STORE 0 TO CHEQUE
WAIT
LOOP
ENDIF
STORE PRESENTED TO PRES
@ 7,0
@ 8,0 SAY 'CATGRY'
@ 8,10 SAY 'PAYEE'
@ 8,50 SAY 'DATE'
@ 8,60 SAY'AMOUNT'
@ 9,0 SAY TYPE
@ 9,10 SAY PAYEE
@ 9,50 SAY DATECHQ
@ 9,60 SAY AMTCHQ
@ 10,0 SAY 'IF THIS CHEQUE HAS BEEN PRESENTED SET FLAG TO TRUE "T" ' GET ;
PRES
READ
REPLACE PRESENTED WITH PRES
STORE 0 TO CHEQUE
ENDDO
erase
return
CASE DEC='3'
erase
STORE ' ' TO DEC2
@ 1,0 SAY ' FOR A FULL REPORT PRESS F , FOR MONTHLY PRESS M'GET DEC2
@ 2,0 SAY ' FOR A SUMMARY FULL PERIOD REPORT PRESS S'
READ
STORE !(DEC2) TO DEC2
IF DEC2='F'
USE GENLED INDEX GENTYPE
REPORT FORM GENLE