Installing CONTROL on an DIM Store branch computer
- At Head Office:
- Create polling directories:
$CCDIR/WA/<BRANCH>
$CCDIR/WA/<BRANCH>/send
$CCDIR/WA/<BRANCH>/receive
- Create the branch as needed in the WA company. Should be copy of an existing store with appropriate modifications.
- Create the polling location as needed in the WA company. Should be copy of an existing store with appropriate modifications.
- If the branch is a new branch, copy stock and category records to branch from ??HO?? (sicrep)
- Tar (retain absolute path) the /u/cc/ directory from an existing store computer.
- If the store does not have a VPN connection, tar (retain absolute path) the following VPN files into vpn.tgz
- /etc/ppp/peers/DIM
- /etc/ppp/peers/DIM_id_dsa
- /etc/ppp/connect-script
- Copy data from HO into polling files
- Pause polling from cron so it does not interfere with what you are going to do.
- Make sure there isn't a copy of rslog.dat in the local directory and copy standard rslog.dat into the local directory
- Make sure there isn't a copy of rsendtrn.dat in the local directory and copy standard rsendtrn.dat into the local directory
- Dump the following records to the local copy of rslog.dat IN THE FOLLOWING ORDER:
- Menus (menurep -l rslog.dat)
- Branches (brurep -l rslog.dat)
- Branch Code = 1
- Branch Code = HO
- Employees (empurep -l rslog.dat)
- Creditor Types (cutrep -l rslog.dat)
- Creditors (cutrep -l rslog.dat)
- Companies (courep -l rslog.dat)
- Salespeople (smurep -l rslog.dat)
- Colours (clrurep -l rslog.dat)
- Sizes (sizurep -l rslog.dat)
- Categories (catrep -l rslog.dat)
- Stock Items (sturep -l rslog.dat)
- The stock in the branch
- Stock from warehouse location
- BOMs (bomrep -l rslog.dat)
- Debtor Types (dutrep -l rslog.dat)
- Debtors (dutrep -l rslog.dat)
- Debtor Notes (dutrep -l rslog.dat)
- Process all polling files received (commpost -s)
- Post all transactions (postal)
Extract all transactions relating to this store (sendpost -f tran.dat -o rsendtrn.dat -B <BRANCH> 1 12 14 16 17 21 22 30)
- Extract ALL Customer Orders, Debtor Payments Gift Vouchers, etc. (sendpost -f tran.dat -o rsendtrn.dat 23 24 25 26 36)
- Let cron initiate polling (it will automatically zip up the files into the next zip file)
- Create polling directories:
- At the Store:
- Create the /u/ and /u/cc/ directories with world-readable/writable/executable permissions
- Link /cc/ to /u/cc/
- Untar the /u/cc from another store to the appropriate directory.
- Export CCDIR=/u/cc
- Export NODEID=DEMO
- Run conset to change to the WA company
Rename the branch code "1" to be <BRANCH>
Rename the polling location "1" to <BRANCH>
- Create the necessary system users
- cc
- shop
- polling
- If necessary, untar vpn.tgz to the appropriate directory and insert the necessary inittab command.
- Untar eftpos.tgz into the appropriate directory.
- Run clrco on the company to erase all previous data but retain all file maintenance and cont options.
- Link /usr/share/fvwm/system.fvwm2rc to /etc/X11/fvwm2/system.fvwm2rc
- Setup the appropriate cron jobs (Check the edi is enabled)
- Run and test EVERYTHING !!
- After polling runs once, list out the voucher redemptions (salstr 8). Make sure the redemption location matches what is in head office.
- Update this piece of documentation.
