Ceci est une ancienne révision du document !


FIXME Cette page n'est pas encore traduite entièrement. Merci de terminer la traduction
(supprimez ce paragraphe une fois la traduction terminée)

3. Créer le dépôt

Une fois que le site de synchronisation a été configuré, il y a trois approches pour créer et configurer le dépôt qui opérera sur ce site.

  • Cela peut être fait «manuellement» comme décrit dans la première méthode ci-dessous. Cette méthode convient si vous ne créez qu'une poignée de dépôts.
  • Si vous créez un grand nombre de dépôts, il est plus approprié d'utiliser l'une ou les deux méthodes de code footrunner.
  • Au 2019-10-24, il y a deux morceaux de code footrunner qui peuvent accélérer ce processus - voir Créer des fichiers de données pour plusieurs nouveaux sites distants. Ils ne peuvent pas être utilisés ensemble pour le même dépôt, mais il peut être approprié d'utiliser store_create_from_name pour la création d'un seul dépôt, puis utiliser sync_clone_sync_site pour créer les dépôts additionnels.
  1. Sur la version mSupply desktop allez à Spécial > Dépôts > Nouveau dépôt
  2. Saissisez le code et le nom du dépôt
    • Le code du dépôt ne peut pas inclure d'espaces
    • The Store Name needs to be something that users will recognise.
      Mobile Store 1 is not likely to be a good name to use. ;-)

Use the footrunner code store_create_from_name. This method is only useful if you already have a customer and you want to convert it to a store.

  1. Run store_create_from_name to clone the original store. You will need to provide:
    1. Name ID (not name Code :-() to create the store for (must not be blank or already a store)
    2. Store mode for new store (one of store, dispensary or report). Almost always, this should be store
    3. Sync ID for site on which the new store will be Active (optional; if left blank, will default to the current site ID)

Use the footrunner code sync_clone_sync_site. Under this method:

  1. Manually create and appropriately configure a single store.
  2. Make sure the relevant sync sites have been created (above) and then, for EACH store:
  3. Run sync_clone_sync_site to clone the original store. You will need to provide:
    1. Sync ID for source sync site
    2. Sync ID for clone sync site
    3. sync version (v1 for desktop, v3 for mobile)
    4. Decision on whether the cloned store will have 'group' store visibility (visible to all other stores with the same supplying store) or not
    5. Decision on whether to also clone locations, transactions, stock, requisitions. (almost always NO!)
    6. new store code and name for each cloned store
    7. new user name and password for the each cloned store's default user
  4. If there are actually existing customers for each of these stores, you will need to merge the existing customer name with the new store
  5. The store will have the same item visibility configuration as the store that has been cloned. Review, and if necessary, Configure items visibility for the store
  6. The store will have the correct 'basic' sync settings. Review, and if necessary, Configure synchronisation settings
  7. The store will have the correct 'basic' store visiblity settings, including, if you have selected it, 'group' store visibility. Review, and if necessary, Configure store visibility to other stores
  • fr/mobile/setup/server_side/3.1581040020.txt.gz
  • Dernière modification : 2020/02/07 01:47
  • de Alain Dumont