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:
Check if location suggestions are enabled
Enabled:
Get list of suggested locations
Show first suggested location on the screen
Enter a location or select a location
The list of suggested locations is displayed on the screen after the ‘Select location’ button is pressed
When the location is not the first suggested location or an empty location:
Enter a reason
Not enabled:
Enter a location or select a location
All valid locations are allowed