home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / manage1.zip / ACCOUNT.PRG < prev    next >
Text File  |  1986-05-29  |  3KB  |  121 lines

  1. **    Last revision: May 28, 1986 at 17:48
  2. ** account.prg
  3. STOR .t. TO account
  4. DO WHIL account
  5.  STOR '?' to command
  6.  CLEA
  7.  IF clipper
  8.   @ 0,0, 22, 79 BOX frame
  9.   @ 4,1 SAY line1
  10.   @ 19,1 SAY line1
  11.  ELSE
  12.   @ 0,0 TO 4,79
  13.   @ 0,0 TO 19,79
  14.   @ 0,0 TO 22,79 DOUBLE
  15.  ENDI
  16.  @ 20,5 SAY 'Please select one of the above options. You may also leave this menu'
  17.  @ 21,5 SAY "by typing 'Q' and get on-line HELP by typing '?'."
  18.  @ 2,06 SAY DCONAME + '  -  MAIN ACCOUNTING MENU'
  19.  @ 2,65 SAY DTOC(date())
  20.  @ 7,17 SAY "A. Enter checks (Cash Disbursements Journal)"
  21.  @ 8,17 SAY "B. Enter deposits (Cash Receipts Journal)"
  22.  @ 9,17 SAY "C. Other journal entries (General Journal)"
  23.  @ 10,17 SAY "D. Post tenant payments & monthly rent accruals"
  24.  @ 11,17 SAY "E. Print or display Journals or General Ledger"
  25.  @ 12,17 SAY "F. Prepare financial statements"
  26.  @ 13,17 SAY "G. Reindex accounting records"
  27.  @ 14,17 SAY "H. Go to Accounting Maintenance Menu"
  28.  @ 15,17 SAY "I. Exit to the Operating System"
  29.  @ 16,17 SAY "J. Return to any prior menu"
  30.  @ 18,23 SAY "PLEASE SELECT ONE OF THE OPTIONS"
  31.  @ 18,58 GET command PICTURE '!'
  32.  READ
  33.  DO WHIL AT(COMMAND, 'ABCDEFGHIJQ?') = 0
  34.   STOR '?' TO command
  35.   @ 18,58 GET command PICTURE '!'
  36.   READ
  37.  ENDD
  38.  CLEA GETS
  39.  DO CASE
  40.  CASE command = 'A'
  41.   DO checks
  42.   LOOP
  43.  CASE command = 'B'
  44.   DO depos
  45.   LOOP
  46.  CASE command = 'C'
  47.   DO journ
  48.   LOOP
  49.  CASE command = 'D'
  50.   DO postit
  51.   LOOP
  52.  CASE command = 'E'
  53.   DO jourp
  54.   LOOP
  55.  CASE command = 'F'
  56.   DO statem
  57.   LOOP
  58.  CASE command = 'G'
  59.   CLEA
  60.   SET TALK ON
  61.   SET ECHO ON
  62.   INDE ON SUBSTR(data,7,4) + date+ SUBSTR(data,5,2) TO &dr.:account
  63.   SET TALK OFF
  64.   SET ECHO OFF
  65.   LOOP
  66.  CASE command = '?'
  67.   CLEA
  68.   TEXT
  69.  
  70.           M A I N   A C C O U N T I N G   H E L P   M E N U
  71.  
  72.     Items 'A', 'B' and 'C' are books of original entry.  To print out or  
  73.     display these books or the General Ledger, select the 'E' option. To
  74.     post tenant payments to their records or to accrue the monthly rent,
  75.     use the 'D' option.
  76.  
  77.     The actual ultimate financial statements are prepared with the 'F'
  78.     option.  These include a trial balance, the balance sheet and the   
  79.     profit and loss statement.  Before you prepare these statements you
  80.     must reindex. We have provided for this at a number of points including
  81.     option 'G'.
  82.  
  83.     Option 'H' takes you the accounting maintenance menu.  On that menu you  
  84.     can adjust the Chart of Accounts, browse through the accounting records,
  85.     etc. See the Accounting Maintenance HELP menu for more information.
  86.  
  87.  
  88.                     please hit any key to continue.....
  89.  
  90.  
  91.   ENDT
  92.   SET CONSOLE OFF
  93.   WAIT
  94.   SET CONSOLE ON
  95.   LOOP
  96.  CASE command = 'H'
  97.   DO amaint
  98.   LOOP
  99.  CASE command = 'I'
  100.   STOR 'N' TO comman
  101.   @ 18,01 SAY '          ARE YOU SURE YOU WANT TO EXIT TO THE OPERATING SYSTEM ? '
  102.   @ 18,69 GET comman PICTURE '!'
  103.   READ
  104.   IF comman = 'Y'
  105.    CLEA
  106.    SET CONSOLE OFF
  107.    QUIT
  108.   ELSE
  109.    RELE comman
  110.    STOR '?' TO command
  111.    @ 18,01 SAY "                  HIT ANY KET TO RETURN TO THE ACCOUNTING MENU           "
  112.    SET CONSOLE OFF
  113.    WAIT
  114.    SET CONSOLE ON
  115.   ENDI comman = 'Y'
  116.  CASE command = 'J' .OR. command = 'Q'
  117.   STOR .f. TO account
  118.  ENDC
  119. ENDD WHILE account
  120. RETU
  121.