home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
DB3.ARC
/
INVCHECK.PRG
< prev
next >
Wrap
Text File
|
1984-10-25
|
2KB
|
71 lines
***************** Invcheck COMMAND FILE ******************
* The following procedure checks to see that when more than one
* job is indicated for an invoice, the clients match.
*****************************************************************
*
CLEAR
?
@ 6,20 SAY '******** DO NOT INTERRUPT ********'
@ 8,20 SAY ' CHECKING CLIENT INVOICES'
SELECT 1
GO TOP
?
?
DO WHILE .NOT. EOF() .AND. .NOT. Aborted
IF DELETED()
SKIP
ELSE
?? RECNO(),Inv_Nmbr,Client,Descrip
?
TempInv = Inv_Nmbr
TempCli = Client
SKIP
Number = STR(RECNO(),5)
IF Inv_Nmbr = TempInv .AND. Client <> TempCli .AND. .NOT. DELETED()
CLEAR
? ' ********************************************'
?
? ' ENTRY INV# JOB DESCRIPTION'
?
?
?? RECNO(),Inv_Nmbr,Client +'-'+ STR(Job_Nmbr,4),SUBSTR(Descrip,1,26)
SKIP -1
?
DO WHILE Inv_Nmbr = TempInv
?? RECNO(),Inv_Nmbr,Client+'-'+STR(Job_Nmbr,4),SUBSTR(Descrip,1,26)
?
IF RECNO() <> 1
SKIP -1
ELSE
TempInv = ' '
ENDIF
ENDDO
?
? ' ********************************************'
?
? 'Only one CLIENT can be entered on a single invoice.'
WAIT 'Do you want to edit it now (Y or N)? ' TO Fix
IF UPPER(Fix) = 'Y'
CLEAR
@ 3,0 SAY ' Entry' + STR(RECNO(),5)
@ 3,30 SAY ' DATE '+dtoc(Inv_Date)
@ 5,0 SAY ' P. O. NUMBER ' GET PO_Nmbr PICTURE '!!!!!!!!'
@ 7,0 SAY 'INVOICE NUMBER ' GET Inv_Nmbr
@ 8,0 SAY ' CLIENT ' GET Client PICTURE '!!!'
@ 9,0 SAY ' JOB NUMBER ' GET Job_Nmbr
@ 10,0 SAY 'TAXABLE AMOUNT ' GET Taxable
@ 11,0 SAY 'TAXFREE AMOUNT ' GET TaxFree
@ 12,0 SAY ' DESCRIPTION ' GET Descrip PICTURE ;
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
@ 13,0 SAY ' SALES TAX ' GET Sales_Tax
READ
GO TOP
ELSE
Aborted = .T.
ENDIF
ENDIF
ENDIF
ENDDO
*
RETURN