Branch Module
Create steps:
- While creating organisation their should be checkbox for branch wise option. If that checkbox is checked then organisation will have branches.
- In create organisation : create an organisation with its user (admin). Not a single account will create in this organisation.Because this organisation will act as meta / HQ branch.So their will be no transaction in this organisation.
- Branchflag will be 1.
- If branch wise option is selected then there should be compulsion to add minimum one branch.
- Branch will be sub organisation of main organisation. So the 'suborgof' field will have orgcode of main organisaton.
- user(admin) of main organisation will act as user(admin) admin for all other branches of that organisation.
- consider all details of main organisation for sub organisation(branch).e.g. logo, website, company preferences.
- If branch wise option is disable then it will work same as before and the branchflag will be 0.
Login steps:
- Organisation list will have only that organisation which having suborgof field empty.
- After entering username get list of branches (sub organisations) which are related to that user and organisation.
- If user is Admin then show all branches (sub organisations ) of that organisation.
- Only admin will have access of meta/HQ branch.
- After selection of branch, login will be done same as before.
- If selected organisation doesn’t have branches then it will work same as before.
Edited by kskarthik