Skip to content

Save state business

Ahmed Reda edited this page Aug 2, 2016 · 4 revisions
  • User can save only one organization from the same type
  • User can return his saved version if he tried to create organization similar in type with the saved one
  • User must insert at least organization commercial name (English && Arabic)
  • if name already exists it will cause alert (back end)
  • creator will be added automatically as organization user
  • all validation are ignored in save state cause it's after all a demo data (not validated) yet
  • dates (to avoid format validation ) & organization users & attachments values are set to null ... they can be added later

NOTE:

  1. if user updated saved stated organization then :

    1. organization entity status will be kept as its STATUS_STATE_SAVED = 4 (done)
    2. a flash message will appear in my organization to tell user to do the following : (done)
      1. if organization entity has no users then it will tell him to update org users (ATC or ATp or Both)
      2. if organization there's at least one meta's status STATUS_STATE_SAVED = 4 , a message will appear telling the user to update organization license data
  2. if user updated saved meta then :

    1. if the organization has no organization users (ATC && ATP && Both) then flash message will appear telling the user to update organization users

Tutorial : How to build organization using save state button ?

  1. First you just need to fill organization commercial name Ar&En and other values needed except attachments and dates
  2. Then save your dummy organization using save state button , then you will see your organization's types (ATC && ATP as state saved in /organization/myorganizations --- other types always active)
  3. Whenever you have the data needed you may start adding your organization license data (ATP 0r ATC ) from Renew button in my organization OR assign users to your organizations from Manage users button in my organizations , no matter which way you go first but you should do both to validate the organization
  4. Congratulations you've just updated your license and your users , Now your organization is valid waiting for admin approval (if creator is user ) or already active (if creator is admin)