home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
DB3.ARC
/
INVSUBTO.PRG
< prev
next >
Wrap
Text File
|
1984-10-25
|
768b
|
26 lines
******************* Invsubto COMMAND FILE ***********************
* Sub-Module of the Invprint command file.
* Prints subtotals for Taxed and Untaxed items at the end of
* a page, the top of a new page and at the end of the invoice.
*****************************************************************
*
IF Taxed = 0
FirstSub = SPACE(11)
A = SPACE(9)
ELSE
FirstSub = STR(Taxed,11,2)
A = '---------'
ENDIF
IF Service = 0
SecondSub = SPACE(11)
B = ' '
ELSE
SecondSub = STR(Service,11,2)
B = ' ---------'
ENDIF
*
? SPACE(56) + A + B
? SPACE(15) + 'Sub-totals: ' + SPACE(25) + FirstSub + SecondSub
*
RETURN