Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : DB3AR.ZIP
Filename : ADDIT.PRG

 
Output of file : ADDIT.PRG contained in archive : DB3AR.ZIP
********************************* (B:ADDIT.PRG)
CLEAR
DO WHILE .T.
? 'Want to continue ? '
?
STORE ' ' TO OPTION
WAIT '? ' TO OPTION
IF OPTION<>'Y'
RETURN
ENDIF
CLEAR
USE B:INV
STORE 0.00 TO MPRICE,MCRINV,MAMT,MNET
STORE 0.00 TO OVER_30,OVER_45,OVER_60,OVER_90
DO WHILE .NOT. EOF()
SET TALK ON
SUM PRICE,CRINV,AMTAPPL,NET TO MPRICE,MCRINV,MAMT,MNET
SUM NET FOR NEWDATE <= DATE() - 60 TO OVER_30
SUM NET FOR NEWDATE <= DATE() - 75 TO OVER_45
SUM NET FOR NEWDATE <= DATE() - 90 TO OVER_60
SUM NET FOR NEWDATE <= DATE() - 120 TO OVER_90
SET TALK OFF
CLEAR
? SPACE(35)+DTOC(DATE())
?
? SPACE(20)+ 'Total shipped in file: $ '+STR(MPRICE,9,2)
?
? SPACE(20)+ 'Total credits in file: $ '+STR(MCRINV,9,2)
?
? SPACE(20)+ 'Total payments_______: $ '+STR(MAMT,9,2)
?
? SPACE(20)+ 'Total net due________: $ '+STR(MNET,9,2)
?
? SPACE(20)+ 'Over 30 days past due: $ '+STR(OVER_30,9,2)
?
? SPACE(20)+ 'Over 45 days past due: $ '+STR(OVER_45,9,2)
?
? SPACE(20)+ 'Over 60 days past due: $ '+STR(OVER_60,9,2)
?
? SPACE(20)+ 'Over 90 days past due: $ '+STR(OVER_90,9,2)
?
? SPACE(25)+'Want to print this report? '
?
WAIT ' ? ' TO OPTION
IF OPTION<>'Y'
ENDDO
RETURN
ENDIF
SET PRIN ON
SET DEVI TO PRIN
? SPACE(23)+MTITLE
? SPACE(33)+DTOC(DATE())
?
?
? SPACE(20)+ 'Total shipped in file: $ '+STR(MPRICE,9,2)
?
?
? SPACE(20)+ 'Total credits in file: $ '+STR(MCRINV,9,2)
?
?
? SPACE(20)+ 'Total payments_______: $ '+STR(MAMT,9,2)
?
?
? SPACE(20)+ 'Total net due________: $ '+STR(MNET,9,2)
?
?
? SPACE(20)+ 'Over 30 days past due: $ '+STR(OVER_30,9,2)
?
?
? SPACE(20)+ 'Over 45 days past due: $ '+STR(OVER_45,9,2)
?
?
? SPACE(20)+ 'Over 60 days past due: $ '+STR(OVER_60,9,2)
?
?
? SPACE(20)+ 'Over 90 days past due: $ '+STR(OVER_90,9,2)
?
? SPACE(20)+ '----------------------------------'
? CHR(12)
SET PRIN OFF
SET DEVI TO SCREEN
ENDDO
RETURN


  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : DB3AR.ZIP
Filename : ADDIT.PRG

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/