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
/
OVERDUE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
3KB
|
109 lines
*OVERDUE.PRG
ERASE
STORE ' ' TO DEC
@ 1,0 SAY 'THIS PROGRAM CHECKS FOR PAYMENTS AND THEN SENDS OUT THE '
@ 2,0 SAY 'OVER DUE LETTER, PRESS C TO CONTINUE, R TO RETURN'GET DEC;
PICT '!'
READ
IF DEC<>'C'
RETURN
ENDIF
ERASE
*******************************CHECK FOR PAYMENTS THIS MONTH***********
@ 12,0 SAY '*****************CHECKING FOR PAYMENTS*******************'
SELECT PRIMARY
USE NAMELIST INDEX NAMENUM
ERASE
@ 12,0 SAY'******************************RESETTING FLAGS********************'
REPLACE ALL NASTY WITH F
ERASE
@ 12,0 SAY '*********************USING THE RECEIPTS FILE*******************'
SELECT SECONDARY
USE LEDGER
ERASE
DO WHILE .NOT. EOF
SELECT SECONDARY
IF CREDIT = 0
SKIP
LOOP
ENDIF
STORE ACCNUM TO ACCNUMA
SELECT PRIMARY
@ 12,20 SAY ACCNUMA
FIND &ACCNUMA
REPLACE NASTY WITH T
SELECT SECONDARY
SKIP
ENDDO
***********************OVERDUE A/CS WITH PAYMENTS MADE MARKED FOR NO LETTER**
ERASE
? 'SET PRINTER UP WITH PLAIN PAPER IN IT AND RESET TO TOP OF PAGE'
? 'PRESS ANY KEY WHEN READY'
WAIT
ERASE
SET TALK OFF
RELEASE ALL
SELECT PRIMARY
SET INDEX TO NAME
GO TOP
SET PRINT ON
EJECT
DO WHILE .NOT. EOF
***********NOT NASTY MEANS NASTY LETTER TO BE SENT.************
IF NASTY .OR. LAST:BAL=0 .OR. SIXTY=0 .AND. NINETY=0
SKIP
LOOP
ENDIF
SET PRINT ON
SET FORMAT TO PRINT
@ 16,20 SAY NAME
@ 16,55 SAY 'ACCOUNT #'
@ 16,65 SAY ACCNUM
@ 17,20 SAY STREET
@ 17,55 SAY 'BALANCE'
@ 17,65 SAY LAST:BAL
@ 18,20 SAY CITYPC
ENDIF
TEXT
Dear Sir, OVERDUE ACCOUNT NOTICE
The above account has exceeded our trading terms of Nett 30 Days and
is now at least 45 days overdue. Whilst the "experts" keep on telling us that
the recession is over they have not said that every body is paying their
accounts on time . It seems that we are expected to finance your account
whilst we have to go into overdraft to do so.
Should there be any reason for withholding payment, please do not
hestitate to contact the undersigned to enable the problem to be solved.
Assuming there are no problems, we expect your cheque in the near
future.
If you have sent a cheque in the meantime please accept our thanks
and disregard this notice.
ENDTEXT
IF RESALE
TEXT
Please note that this over due account WILL not be eligble for the
early settlement discount .
endtext
endif
text
Yours Faithfully
Manager credit department
ENDTEXT
? DATE()
EJECT
REPLACE NASTY WITH T
SKIP
ENDDO
SET FORMAT TO SCREEN
SET PRINT OFF
RETURN