# Capacity Feature

**Regardless of scenarios, the process of lowering and raising quotas continues, the quota amount continues to increase and decrease on a location basis. However, for these alterations to impact planning, the scenario rules must have the SELECT\_BY\_QUOTA value.**

* The maximum quota value specifies how many packages can be created from the respective location. The quota value is a user-unspecified parameter used for monitoring the maximum quota value and performing increase or decrease operations.
* max\_quota - quota = available\_quota
* If the available\_quota value is 0, no packages can be created. (To encounter this scenario, the SELECT\_BY\_QUOTA value must be chosen in the scenario rules.)
* For packages with a status below 400 and in the cancellation\_waiting state, the quota value increases by 1. (During this stage, when the package is in the waiting state, the quota amount is considered to increase by 1.)
* Upon packaging a package, the quota value decreases by 1. Consequently, the available\_quota increases, enhancing the likelihood of packaging from the respective location.
* In the event of a package cancellation, the quota amount decreases by 1 in a similar way.

## <mark style="color:red;">How to Set Max\_quota Condition​</mark> <a href="#how-to-set-max_quota-condition" id="how-to-set-max_quota-condition"></a>

* Navigate to Akinon OMS > Locations > x location: Enter the desired max\_quota value in the max\_quota field.
* Navigate to Akinon OMS > Scenarios > Distribution Scenario > Rules > StockLocation Conditions: Ensure SELECT\_BY\_QUOTA is selected.
  * Once these steps are executed, the packaging process will factor in the max\_quota amount.
  * After establishing this condition, it is crucial to note that the packaging process will occur based on the max\_quota value.
  * In case of misuse, the packaging process may not occur. (For instance, if max\_quota values are not entered for locations, and there is only one rule in the scenario with a quota condition, the packaging process will not occur.)
