home *** CD-ROM | disk | FTP | other *** search
/ Software Du Jour / SoftwareDuJour.iso / BUSINESS / DBASE / PROPMGR1.ARC / CHART.ACC < prev    next >
Encoding:
Text File  |  1979-12-31  |  6.3 KB  |  180 lines

  1. * DATE 07/20/84  18:12
  2. * chart of account program
  3. STOR CHR(PEEK(063)) TO dr
  4. SELE SECONDARY
  5. USE &dr.:CHART
  6. SET INDEX TO &dr.:chart
  7. STOR t TO more3
  8. DO WHIL more3
  9.  REST from coname additive
  10.  ERAS
  11. TEXT
  12.  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  13.  *                                                                           *
  14.  *                                                                           *
  15.  *                                                                           *
  16.  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  17.  *                                                                           *
  18.  *                                                                           *
  19.  *                                                                           *
  20.  *                                                                           *
  21.  *                                                                           *
  22.  *                                                                           *
  23.  *                                                                           *
  24.  *                                                                           *
  25.  *                                                                           *
  26.  *                                                                           *
  27.  *                                                                           *
  28.  *                                                                           *
  29.  *                                                                           *
  30.  *                                                                           *
  31.  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  32.  *   Please select one of the above options. You may also leave this menu    *
  33.  *   by typing 'Q' and get on-line HELP by typing '?'.                       *
  34.  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  35. ENDT
  36.  STOR '?' TO comman
  37.  @ 3,04 SAY coname + ' -  CHART OF ACCOUNTS MENU'
  38.  @ 3,65 SAY date()
  39.  @ 07,26 SAY "1. Display Chart of Accounts"
  40.  @ 08,26 SAY "2. Print Chart of Accounts"
  41.  @ 09,26 SAY "3. Edit or delete existing accounts"
  42.  @ 10,26 SAY "4. Add new accounts"
  43.  @ 11,26 SAY "5. Index Chart of Accounts"
  44.  @ 12,26 SAY "6. Return to prior menu"
  45.  @ 17,23 SAY "PLEASE SELECT ONE OF THE OPTIONS"
  46.  @ 17,58 GET comman PICTURE '!'
  47.  READ
  48.  DO WHIL @(COMMAN, '123456?Q') = 0
  49.   STOR '?' TO comman
  50.   @ 17,58 GET comman PICTURE '!'
  51.   READ
  52.  ENDD
  53.  CLEA GETS
  54.  DO CASE
  55.  CASE comman = '1' .OR. comman = '2'
  56.   IF comman =  '2'
  57.    SET PRINT ON
  58.    LIST all fields acctno, desc
  59.    SET PRINT OFF
  60.   ELSE
  61.    ERAS
  62.    SET ESCAPE OFF
  63.    DISP all fields acctno, desc
  64.    SET ESCAPE ON
  65.    ? ' '
  66.    ? '                               Hit any key to continue'
  67.    SET CONSOLE OFF
  68.    WAIT
  69.    SET CONSOLE ON
  70.   ENDI comman = '2'
  71.  CASE comman = '3'
  72.   ERAS
  73.   STOR t TO more4
  74.   DO WHIL more4
  75.    STOR '    ' TO macctno
  76.    STOR '                                             ' TO mdesc
  77.    @ 12,00
  78.    @ 13,00
  79.    @ 15,00
  80.    @ 8,10 SAY 'Leave blank to end editing'
  81.    @ 10,10 SAY "What account shall we edit  ?"
  82.    @ 10,39 GET macctno PICTURE '9999'
  83.    READ
  84.    IF macctno = ' '
  85.     STOR f TO more4
  86.    ELSE
  87.     FIND &macctno
  88.     DO WHIL # = 0
  89.      @ 10,10 SAY "What account shall we edit  ?"
  90.      @ 10,39 GET macctno PICTURE '9999'
  91.      READ
  92.      FIND &macctno
  93.     ENDD WHILE # = 0
  94.     STOR 'N' TO getrid
  95.     STOR desc TO mdesc
  96.     @ 12,10 SAY "Account Number: "
  97.     @ 13,13 SAY "Description: "
  98.     @ 12,27 GET macctno PICTURE '9999'
  99.     @ 13,27 GET mdesc
  100.     READ
  101.     @ 15,15 SAY "Shall we delete the account ?"
  102.     @ 15,45 GET getrid PICTURE '!'
  103.     READ
  104.     CLEA GETS
  105.     IF getrid = 'Y'
  106.      @ 17,10 SAY "Don't forget to reindex to remove deleted record."
  107.      DELE
  108.     ELSE
  109.      REPL acctno WITH macctno
  110.      REPL desc WITH mdesc
  111.     ENDI getrid
  112.    ENDI macctno
  113.   ENDD WHILE more4
  114.  CASE comman = '4'
  115.   STOR t TO more4
  116.   DO WHIL more4
  117.    ERAS
  118.    STOR '    ' TO macctno
  119.    STOR '                                             ' TO mdesc
  120.    @ 08,10 SAY 'Add as many account as you wish - just leave a blank to end'
  121.    @ 10,10 SAY "Account Number: "
  122.    @ 11,13 SAY "Description: "
  123.    @ 10,27 GET macctno PICTURE '9999'
  124.    @ 11,27 GET mdesc
  125.    READ
  126.    IF macctno = ' '
  127.     STOR f TO more4
  128.    ENDI macct no
  129.   ENDD while more4
  130.  CASE comman = '5'
  131.   SET TALK ON
  132.   SET ECHO ON
  133.   STOR CHR(PEEK(063)) TO dr
  134.   SET INDEX TO
  135.   PACK
  136.   INDE on acctno TO &dr.:chart
  137.   SET ECHO OFF
  138.   SET TALK OFF
  139.   SET INDEX TO &dr.:chart
  140.  CASE comman = '?'
  141.   ERAS
  142. TEXT
  143.             C H A R T   O F    A C C O U N T S   H E L P   M E N U
  144.  
  145.     The Chart of Accounts is critical to your use of this program.
  146.         It is the vehicle by which you can customize Property Manager
  147.         to fit your requirement. IF YOU SELECTED THE GENERAL CHART OF
  148.         ACCOUNTS YOU MUST INDEX BEFORE FIRST USE.
  149.  
  150.         The Display function shows the various accounts on screen in 
  151.         account number order. The print funtion outputs a full list to
  152.         your printer.  We would suggest that you print the list and    
  153.         decide how it should be customized to meet your needs. You can
  154.         then use the edit function to change or delete items and the
  155.         add funtion to add new items.  Remember, before you use it
  156.         you must index it. (Note to the edit function will not find
  157.         an entry that has had the account number changed unless you
  158.         reindex. 
  159.  
  160.         If you change the account number structure you may have to 
  161.         change the statement writing modules. Chances are you will 
  162.         not have to - but you may.
  163.  
  164.                                   Hit any key to continue
  165. ENDT
  166.   SET CONSOLE OFF
  167.   WAIT
  168.   SET CONSOLE ON
  169.  CASE comman = '6' .OR. comman = 'Q'
  170.   STOR f TO more3
  171.  ENDC
  172. ENDD WHILE more3
  173. RELE ALL
  174. STOR CHR(PEEK(063)) TO dr
  175. SELE PRIMARY
  176. USE &dr.:account
  177. SET INDEX TO &dr.:account
  178. STOR t TO account1
  179. RETU
  180.