Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:mobile:setup:server_side [2020/02/03 02:22] – ↷ Links adapted because of a move operation lou_lomas | en:mobile:setup:server_side [2020/03/01 23:28] (current) – lou_lomas | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{indexmenu_n> | + | {{indexmenu_n> |
- | ====== Setting up mSupply Mobile - Server side ====== | + | {{: |
- | <WRAP center round tip 60%> | + | ====== Setting up the server |
+ | \\ | ||
+ | <WRAP center round tip 80%> | ||
The following details the steps of setting up mSupply from your organisation' | The following details the steps of setting up mSupply from your organisation' | ||
Line 7: | Line 9: | ||
</ | </ | ||
- | <WRAP center round info 60%> | ||
- | As of 2019-10-24, this process is largely manual, with sync sites and stores needing to be created by an operator, one-by-one with a few small bits of code to make some of these processes quicker and more reliable. | ||
- | * Store name | ||
- | * Customer name from which the store is being created (normally the case) | ||
- | * Item master list controlling visibility for the store | ||
- | </ | ||
+ | {{indexmenu> | ||
- | ===== Requirements ===== | ||
- | * A server running mSupply with a web server license registered | ||
- | * Sync server has a static IP and any network permissions required configured | ||
- | * A mobile tablet fitting the recommended specifications [[en: | ||
- | ===== General approach ===== | ||
- | **EACH** mobile store needs to have these: | + | \\ \\ |
+ | | // | ||
- | - [[en: | ||
- | - [[en: | ||
- | - [[en: | ||
- | |||
- | <WRAP center round alert> | ||
- | |||
- | If the stores being created from existing customers in an existing mSupply system, then an additional step needs to be carried out: [[https:// | ||
- | |||
- | <wrap em> | ||
- | |||
- | If you try to do the merge before finalising unfinalised customer invoices, you will get an error message, and as that message indicates, the merge will not proceed: | ||
- | |||
- | {{ : | ||
- | </ | ||
- | |||
- | ===== Create Sync Site ===== | ||
- | |||
- | The first step is to create the sync site that the store will be ' | ||
- | |||
- | <WRAP center round info 60%> | ||
- | As of 2019-10-24, this process is manual, with sync sites needing to be created by an operator, one-by-one.</ | ||
- | |||
- | - Got to Admin > Preferences{{ : | ||
- | - On the Synchronise tab on the left-hand side and click on the unlock button and enter the password{{ : | ||
- | - Add new Sync Site{{: | ||
- | - Enter **Sync ID**, **User name** and **Password**. | ||
- | - Click **OK**< | ||
- | * Keep track of the password! | ||
- | * Sussol will typically have them securely stored if Sussol has done the sync setup. | ||
- | </ | ||
- | |||
- | |||
- | ===== Create and configure store that will be operated on the mobile device ===== | ||
- | |||
- | After the sync sites have been set up, there are three approaches to creating and configuring the store that will operated on that site. | ||
- | |||
- | <WRAP center round tip> | ||
- | * This can be done ' | ||
- | * If you are creating a larger number of stores, then it is more appropriate to use one or both of the two footrunner code methods. | ||
- | </ | ||
- | |||
- | ==== 1. Manually create store ==== | ||
- | - On mSupply desktop go to **Special > Stores > New Store**{{ : | ||
- | - Enter the Store Code and the Store Name{{ : | ||
- | * The Store Code can not include spaces | ||
- | * The Store Name needs to be something that users will recognise.\\ | ||
- | </ | ||
- | - [[en: | ||
- | - [[en: | ||
- | - [[en: | ||
- | ==== 2. Create store from existing customer name using store_create_from_name ==== | ||
- | |||
- | Use the footrunner code [[https:// | ||
- | |||
- | - Run '' | ||
- | - Name **ID** (not name **Code** :-() to create the store for (must not be blank or already a store) | ||
- | - Store mode for new store (one of '' | ||
- | - Sync ID for site on which the new store will be Active (optional; if left blank, will default to the current site ID) | ||
- | - [[en: | ||
- | - [[en: | ||
- | - [[en: | ||
- | |||
- | ==== 3. Create store by cloning another sync store using sync_clone_sync_site ==== | ||
- | Use the footrunner code [[https:// | ||
- | - Manually create and appropriately configure a single store. | ||
- | - Make // | ||
- | - Run '' | ||
- | - Sync ID for source sync site | ||
- | - Sync ID for clone sync site | ||
- | - sync version (v1 for desktop, v3 for mobile) | ||
- | - Decision on whether the cloned store will have ' | ||
- | - Decision on whether to also clone locations, transactions, | ||
- | - new **store** code //and// name for each cloned store | ||
- | - new **user** name //and// password for the each cloned store' | ||
- | - If there are actually existing customers for each of these stores, you will need to [[https:// | ||
- | - The store will have the same item visibility configuration as the store that has been cloned. | ||
- | - The store will have the correct ' | ||
- | - The store will have the correct ' | ||
- | |||
- | ==== Making items visible to the new store according to a Master List ==== | ||
- | |||
- | - Click on the **Master Lists** tab and select at least one Master List.{{ : | ||
- | - Click **OK** | ||
- | - Click **OK** again | ||
- | |||
- | |||
- | ==== Setting up correct synchronisation settings ==== | ||
- | |||
- | <WRAP center round tip> | ||
- | If you have used [[https:// | ||
- | * Change the Synchronisation type for this store on the Primary Server to **Collector** if so desired (normally the case) | ||
- | * Configure this new store' | ||
- | </ | ||
- | |||
- | |||
- | |||
- | - Edit store synchronisation settings (**Special > Show Stores >** Double-click on store **> Synchronisation > Click to Unlock**, enter code to edit): | ||
- | - In the table below, in row of the Sync site that was created for this store, tick the tickbox in the **Local** column. | ||
- | - Set **Synchronisation type** at the top to '' | ||
- | - Click **OK** | ||
- | |||
- | ==== Configure visibility to other stores ==== | ||
- | |||
- | - Edit the ' | ||
- | |||
- | ===== Setting up User Access to the store ===== | ||
- | |||
- | <WRAP center round tip 60%> | ||
- | Unlike mSupply Desktop, mSupply Mobile does not need or use individual user permissions for the various activities within the store. | ||
- | </ | ||
- | |||
- | ==== Setting up Store User Access ==== | ||
- | |||
- | <WRAP center round important 60%> | ||
- | This step has already been carried out if you have used method [[en: | ||
- | </ | ||
- | |||
- | |||
- | At least one store user needs to be set up to have have access to the new store on the Primary server. | ||
- | |||
- | <WRAP center round tip 60%> | ||
- | For convenience when using a tablet: | ||
- | * Only use lower-case letters for both username and password | ||
- | * Consider using short usernames and passwords | ||
- | </ | ||
- | |||
- | ==== Setting up admin User Access ==== | ||
- | |||
- | At least one admin user needs to be set up to have have access to the new store on the Primary server. | ||
- | |||
- | - Go to **Admin > Edit Users**{{ : | ||
- | - Select the user and go to **Login Rights**{{ : | ||
- | - Select the new Store | ||
- | - Click **OK** | ||
- | |||
- | |||
- | |||
- | ===== Verify that the store is working ===== | ||
- | |||
- | - On the Primary server, log in to the Store (**File > Switch**) (or ‘cmd 2’ (apple) or ‘ctrl 2’ (windows)){{ : | ||
- | - Check that the right items are visible | ||
- | |||
- | |||
- | ==== Start the web server ==== | ||
- | |||
- | Sync will not start until you have started the [[https:// | ||
- | |||
- | |||
- | |||
- | === Related Links === | ||
- | * [[en: | ||
- | |||
- | \\ | ||
- | \\ | ||
- | | //Return to: [[mobile: |