home *** CD-ROM | disk | FTP | other *** search
-
-
- * PAYMENU.CMD
- * This is a sub-module of the Acctg.Cmd file and provides choices
- * as to which checks are to be prepared for posting and printing.
- * Paying salaries has another menu level to allow partial payments
- * to selected employees (e.g.., leave of absence, when an employee
- * does not work a full two week stretch, etc.)
- * The checkbook balance and next check number must be confirmed before
- * either of the procedures can be performed
-
- SET INTE OFF
- RESTORE FROM Constant
- ERASE
- @ 3,0 SAY 'CHECK NUMBER: ' +NextCheck+' BALANCE: '+STR(MBalance,9,2)
- ?
- ? ' Do these match the checkbook?'
- ? ' C to CONTINUE,'
- ? ' <Return> to change..'
- ?
- WAIT TO Continue
-
- IF !(Continue) <> 'C'
- RELEASE All
- RETURN
- ENDIF
-
- STORE T TO Paying
- DO WHILE Paying
- ERASE
- @ 5,20 SAY ' 1> PAY BILLS'
- @ 7,20 SAY ' 2> PAY SALARIES'
- @ 10,20 SAY ' <Return>'
- WAIT TO Action
-
- IF Action = '1'
- USE PostFile
-
- * Can abort if any entries in the Postfile.
- COUNT FOR .Not. * TO Any
- IF Any = 0
- DO PayBills
- ELSE
- ?
- ? 'The POSTING file has '-STR(Any,5)+' bills in it.'
- ? 'Do you still want to pay bills now (Y or N)?'
- WAIT TO Continue
- IF !(Continue) = 'Y'
- DO PayBills
- ELSE
- RELEASE All
- ENDIF
- ENDIF
- ELSE
- IF Action = '2'
- DO PayEmps
- ELSE
- RELEASE All
- RETURN
- ENDIF 2
- ENDIF 1
- STORE T TO Paying
- ENDDO Paying
-
-
-