1. High level explanation

When the location suggestion is enabled, the system will suggest a location for the stock that is being moved in the following flows:

When a destination location needs to be entered these flows will perform the following scenario:

  1. Check if location suggestions are enabled
  2. Enabled:
    1. Get list of suggested locations
    2. Show first suggested location on the screen
    3. Enter a location or select a location
      1. The list of suggested locations is displayed on the screen after the ‘Select location’ button is pressed
    4. When the location is not the first suggested location or an empty location:
      1. Enter a reason
  3. Not enabled:
    1. Enter a location or select a location
      1. All valid locations are allowed