home *** CD-ROM | disk | FTP | other *** search
- * ┌─────────────────────────────────────────────────────────────────────┐ *
- * │ INVSALES.PRG: SALES BY ITEM REPORT │ *
- * │ Copyright (c) 1989 Tech III, Inc. All rights reserved. │ *
- * │ Tech III of San Pedro, California (213) 547-2191. │ *
- * │ "The bridge connecting people and technology."(tm) │ *
- * └─────────────────────────────────────────────────────────────────────┘ *
- ACTIVATE WINDOW screensim
- @ 00,00 SAY WINTITLE(PROMPT())
-
- * FILE HANDLING
- SELECT lines
- SET ORDER TO lns_itm
- * DEFINITIONS
- STORE .t. TO printing
- ON ESCAPE STORE .f. TO printing
- STORE 'PRINTER' TO output
- @ 02,00 SAY 'Direct report to PRINTER/SCREEN: ' GET output ;
- PICTURE '@M PRINTER,SCREEN '
- READ
-
- GO TOP
- STORE .t. TO printing
- IF .NOT. YESNO("System is ready to run report.")
- STORE .f. TO printing
- ELSE
- IF output<> "SCREEN "
- IF .NOT. READY2PR()
- STORE .f. TO printing
- ENDIF
- ENDIF
- ENDIF
-
- * START PRINTING
- IF .NOT. printing
- DO standby WITH 'You have canceled this report.'
- ELSE
- IF output = 'PRINTER'
- REPORT FORM invsales NOEJECT TO PRINT WHILE printing
- ELSE
- REPORT FORM invsales NOEJECT TO FILE report.txt WHILE printing
- SELECT 0
- USE system
- LOCATE FOR LABEL = 'INVSALES: '
- IF EOF()
- APPEND BLANK
- ELSE
- REPLACE NEXT 1 contents WITH ''
- ENDIF
- REPLACE LABEL WITH 'INVSALES: ' + DTOC(DATE())
- APPEND MEMO contents FROM report.txt
- MODIFY MEMO contents NOEDIT WINDOW reportview
- USE
- SELECT invoice
- ENDIF
- DO standby WITH 'Your report request has been completed.'
- ENDIF
- SET ORDER TO lns_inv
- CLEAR
- DEACTIVATE WINDOW screensim
- RETURN
-
- *eof
-