Installing CONTROL on an DIM Store branch computer

  1. At Head Office:
    1. Create polling directories:
        • $CCDIR/WA/<BRANCH>

        • $CCDIR/WA/<BRANCH>/send

        • $CCDIR/WA/<BRANCH>/receive

    2. Create the branch as needed in the WA company. Should be copy of an existing store with appropriate modifications.
    3. Create the polling location as needed in the WA company. Should be copy of an existing store with appropriate modifications.
    4. If the branch is a new branch, copy stock and category records to branch from ??HO?? (sicrep)
    5. Tar (retain absolute path) the /u/cc/ directory from an existing store computer.
    6. If the store does not have a VPN connection, tar (retain absolute path) the following VPN files into vpn.tgz
      1. /etc/ppp/peers/DIM
      2. /etc/ppp/peers/DIM_id_dsa
      3. /etc/ppp/connect-script
    7. Copy data from HO into polling files
      1. Pause polling from cron so it does not interfere with what you are going to do.
      2. Make sure there isn't a copy of rslog.dat in the local directory and copy standard rslog.dat into the local directory
      3. Make sure there isn't a copy of rsendtrn.dat in the local directory and copy standard rsendtrn.dat into the local directory
      4. Dump the following records to the local copy of rslog.dat IN THE FOLLOWING ORDER:
        1. Menus (menurep -l rslog.dat)
        2. Branches (brurep -l rslog.dat)
          1. Branch Code = 1
          2. Branch Code = HO
        3. Employees (empurep -l rslog.dat)
        4. Creditor Types (cutrep -l rslog.dat)
        5. Creditors (cutrep -l rslog.dat)
        6. Companies (courep -l rslog.dat)
        7. Salespeople (smurep -l rslog.dat)
        8. Colours (clrurep -l rslog.dat)
        9. Sizes (sizurep -l rslog.dat)
        1. Categories (catrep -l rslog.dat)
        2. Stock Items (sturep -l rslog.dat)
          1. The stock in the branch
          2. Stock from warehouse location
        3. BOMs (bomrep -l rslog.dat)
        4. Debtor Types (dutrep -l rslog.dat)
        5. Debtors (dutrep -l rslog.dat)
        6. Debtor Notes (dutrep -l rslog.dat)
      5. Process all polling files received (commpost -s)
      6. Post all transactions (postal)
      7. Extract all transactions relating to this store (sendpost -f tran.dat -o rsendtrn.dat -B <BRANCH> 1 12 14 16 17 21 22 30)

      8. Extract ALL Customer Orders, Debtor Payments Gift Vouchers, etc. (sendpost -f tran.dat -o rsendtrn.dat 23 24 25 26 36)
      9. Let cron initiate polling (it will automatically zip up the files into the next zip file)
  2. At the Store:
    1. Create the /u/ and /u/cc/ directories with world-readable/writable/executable permissions
    2. Link /cc/ to /u/cc/
    3. Untar the /u/cc from another store to the appropriate directory.
    4. Export CCDIR=/u/cc
    5. Export NODEID=DEMO
    6. Run conset to change to the WA company
    7. Rename the branch code "1" to be <BRANCH>

    8. Rename the polling location "1" to <BRANCH>

    9. Create the necessary system users
      1. cc
      2. shop
      3. polling
    10. If necessary, untar vpn.tgz to the appropriate directory and insert the necessary inittab command.
    11. Untar eftpos.tgz into the appropriate directory.
    12. Run clrco on the company to erase all previous data but retain all file maintenance and cont options.
    13. Link /usr/share/fvwm/system.fvwm2rc to /etc/X11/fvwm2/system.fvwm2rc
    14. Setup the appropriate cron jobs (Check the edi is enabled)
    15. Run and test EVERYTHING !!
    16. After polling runs once, list out the voucher redemptions (salstr 8). Make sure the redemption location matches what is in head office.
    17. Update this piece of documentation.

Installing_DIM_Stores (last edited 2013-09-18 06:09:33 by localhost)