# Transfer Scenarios

This tutorial provides step-by-step instructions on how to create or edit transfer scenarios within OMS. Transfer scenarios are essential for managing the movement of items within the system efficiently.

## <mark style="color:red;">Step 1: Access Transfer Scenarios​</mark> <a href="#step-1-access-transfer-scenarios" id="step-1-access-transfer-scenarios"></a>

* To add a new transfer scenario, navigate to the Akinon OMS menu and select the **Scenarios** tab.
* Next, click on **Transfer Scenarios**.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FUQDE7JScwxbg1kSTbbcZ%2Fimage.png?alt=media&#x26;token=06c559e6-4d1a-484d-9299-7d83017852bd" alt=""><figcaption></figcaption></figure>
* Click on the **+New Scenario** button to begin creating a new transfer scenario.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FLdvE7KQblOVGVrjFXdFh%2Fimage.png?alt=media&#x26;token=5659e515-9090-44b5-9c63-4887b661f5b9" alt=""><figcaption></figcaption></figure>
* To edit an existing transfer scenario, follow the same steps to access **Transfer Scenarios** under the **Scenarios** tab. Select the scenario you want to edit from the list and navigate to its details.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FB3fFBVV1vSAmgN9cKKXM%2Fimage.png?alt=media&#x26;token=b3829eba-3eb2-4b29-9d73-5c51f810a5a1" alt=""><figcaption></figcaption></figure>

## <mark style="color:red;">Step 2: Create a Transfer Scenario​</mark> <a href="#step-2-create-a-transfer-scenario" id="step-2-create-a-transfer-scenario"></a>

When creating a transfer scenario, you need to provide the following details:

* **Scenario Name**: Enter a name for the scenario. This name will appear in the scenario list and is mandatory.
* **Status**: Manage the scenario's active/passive status. Only active scenarios are used in the planning stage.
* **Description**: Add a description for the scenario (optional).
* **Channel Condition Type**: Select the type of value to enter in the channel field. **Static** allows you to select channels from a list, while **Dynamic** enables customized queries with a builder.
* **Channel**: Filter the channel(s) on which the scenario will be applied.
* **Shipping Condition Type**: Similar to the channel, select the type of value for shipping.
* **Shipping**: Filter the shipping(s) for this scenario.
* **Payment Condition Type**: Similar to the channel, select the type of value for payment.
* **Payment**: Filter the payment(s) for this scenario.
* **Customer Type**: Use this for scenarios based on customer types.

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2Fgexdnc0K2oyc6gI522Nx%2Fimage.png?alt=media&#x26;token=936c9302-7f2c-4093-a506-3ea0e24c364c" alt="" width="375"><figcaption></figcaption></figure>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2Fj3XkANZDZbARu9YFiV1c%2Fimage.png?alt=media&#x26;token=b5196cda-adc1-4965-9105-77fa6df93db4" alt="" width="375"><figcaption></figcaption></figure>

## <mark style="color:red;">Step 3: Add a Package Rule​</mark> <a href="#step-3-add-a-package-rule" id="step-3-add-a-package-rule"></a>

* When adding a package rule, start by entering the rule's name and adding prerequisites.
* Prerequisites allow you to run the scenario based on specific package's location. For example, you can create rules like 'If the package's location is the X store'.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2F5hrnfqyTq9kjs9T0fiEa%2Fimage.png?alt=media&#x26;token=631bc29e-f597-429c-981e-a7f8f8fbfff5" alt="" width="375"><figcaption></figcaption></figure>

#### <mark style="color:red;">Product Prerequisites​</mark> <a href="#product-prerequisites" id="product-prerequisites"></a>

Product prerequisites can be added, offering three options:

* **All Products**: Prevents processing bundled products in the order.
* **Only Bundled Items**: Runs the rule if there's a bundled product in the order.
* **Except Bundled Items**: Runs the rule if there's no bundled product in the order.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FuSi0xgvI57GnpovF5ish%2Fimage.png?alt=media&#x26;token=8446d188-dc6c-47aa-90fb-4c88c389db4b" alt="" width="375"><figcaption></figcaption></figure>

#### <mark style="color:red;">Stock Location Conditions​</mark> <a href="#stock-location-conditions" id="stock-location-conditions"></a>

* Determine the stock location criteria for creating transfer packages. There are five options:
  * **Distance (km)**: Generates transfer packages in locations with distances matching the prerequisite value from the order address.
  * **Stock Location List**: Enter desired stock locations where transfer packages should be created. Multiple stock locations can be entered, as seen in the example below.
  * **Except Stock Location List**: Specify stock locations where transfer packages should not be created. In this case, transfer packages are created in locations other than the stock locations entered in the condition value.
  * **Location Type**: Assigns packages to stock locations based on conditions like City, District, Neighborhood, or Country at the order address.
  * **Stock Location Type**: Creates transfer packages at stock locations of the selected type; Warehouse or Store.<br>

    <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FZ3GC6d7NbBGYievzB5co%2Fimage.png?alt=media&#x26;token=f8bd998f-e3fd-4dab-abf5-7a2c788155ee" alt="" width="375"><figcaption></figcaption></figure>
* Multiple conditions can be added by clicking the **Add New Location Setting** button and remove undesired conditions using the **Remove** button.

#### <mark style="color:red;">Stock Location Ranking​</mark> <a href="#stock-location-ranking" id="stock-location-ranking"></a>

* Define the sorting order for stock locations when creating packages. Select from two ranking types:
  * **Importance**: Sorts stock locations based on Priority values in ascending or descending order.
  * **Distance**: Sorts stock locations by their distance from the order address in increasing or decreasing.<br>

    <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FdmAtXujf9sxLHUwfdRdV%2Fimage.png?alt=media&#x26;token=5882fe82-1548-43fe-bffd-f9a4c73cd8b4" alt="" width="375"><figcaption></figcaption></figure>
* Multiple sorting priorities can be added by clicking **Add New Ranking Priority**, and remove undesired priorities with the **Remove** button.
* Once the fields have been filled in the rule panels, save the rule by clicking **Save Rule**.&#x20;
* After adding the rule, adjust rule priorities using the scroll buttons on the rule panels. Higher priority rules are processed first.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FgsAjFYQOHMDmMnO6GIwo%2Fimage.png?alt=media&#x26;token=76a88eab-099b-4a14-9e9d-f59c48694b4a" alt="" width="375"><figcaption></figcaption></figure>
* To complete the edit, click **Save Scenario** button.&#x20;
* The scenario order can be changed by dragging and repositioning scenario lines, so the working order also changes.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2F0dNKQvOsSVPGUSHU064g%2Fimage.png?alt=media&#x26;token=826945ac-7e39-477f-b3b7-295c75065d78" alt=""><figcaption></figcaption></figure>

### <mark style="color:red;">Scenario Adding Example​</mark> <a href="#scenario-adding-example" id="scenario-adding-example"></a>

<div align="left"><figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FzT51op9PkG89a0AaWYeW%2Fimage.png?alt=media&#x26;token=c3a26154-791d-4829-bef3-936695b0e56d" alt="" width="375"><figcaption></figcaption></figure></div>

The above example scenario is set to run for:

1. Orders from the Trendyol channel.
2. Orders shipped by Aramex.
