home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
db3plsar.zip
/
CHECKER.PRG
< prev
next >
Wrap
Text File
|
1986-08-05
|
2KB
|
80 lines
SET HEADING OFF
SET SAFETY OFF
SET TALK OFF
******************************************* (CHECKER.PRG)
CLEAR
USE INV
GO TOP
SET EXACT OFF
@ 5,1 SAY 'These invoices have a net amount due of $0.00 and show as OPEN '
?
LIST OFF ACCT,INVNO,NEWDATE,PRICE,CRINV,AMTAPPL,NET FOR .NOT. ì
PAID .AND. NET=0
?
? 'Be careful of any of these...... '
?
LIST OFF ACCT,INVNO,NEWDATE,PAYDATE,PRICE,NET FOR NET<0.00
?
? '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;
~~~~'
?
WAIT
@ 2,0 CLEA
SET EXACT ON
?
? "This takes a long time,don't touch anything until I say it's ì
OK "
?
? [Are these dates for real?....They're over a year old!]
? ' WAIT!'
GO TOP
DO WHILE .NOT. EOF()
STORE YEAR(NEWDATE) TO MDATE
STORE YEAR(DATE()) TO XDATE
STORE XDATE-2 TO XDATE
***********************\/ <CHANGE HERE
IF MDATE=XDATE
@ 5,0 CLEA
? 'Account #'+ACCT+STR(MDATE)+' '+' '+'Invoice #'+INVNO+' '+'Amt. ì
Due'+STR(NET,8,2)
ENDIF
SKIP
ENDDO
WAIT ' OK! OK! ------->So touch me already '
CLEA
?
?
CLEA
STORE 1 TO X
STORE ' ' TO WHO
STORE 1 TO CUSTNO
USE CUST
COUNT TO CUSTNO
USE INV
? [I am looking for invoices with no customer to match...]
SET TALK ON
DO WHILE X<>CUSTNO
USE INV
GOTO X
STORE ACCT TO WHO
USE CUST
LOCA FOR ACCT=WHO
IF EOF()
? CHR(7)
? 'HEY!! YOU HAVE AN INVOICE IN THE FILE THAT HAS NO CUSTOMER TO MATCH!!'
?
?
?
? [ I'm going to show you what I mean....]
?
?
WAIT
USE INV
GOTO X
BROW
ENDIF
STORE X+1 TO X
ENDDO
SET TALK OFF
RETURN