R34307 LogisticUnits - No Availability On Deactivation

Name Value
Code R34307
Entity Logistics.Common.LogisticUnits Entity
Name NoAvailabilityOnDeactivation
Attribute -
Layer Back-End
Events Commit
Priority Normal
Modify NO
Applicable Legislations ALL // no condition needed
Action If (IsActive == false AND IsActive.DatabaseValue == true)
, then validate that COUNT(WarehouseAvailabilityView, where "LogisticUnit == current.LogisticUnit" AND "QuantityBaseAvailable != 0 OR StandardQuantityAvailable != 0") == 0
Description* The rule prevents the deactivation of the current Logistic Unit if there are available quantities for it.
Message Logistic unit '{Logistic Unit}' cannot be deactivated because there are available quantities with it.
Please ensure that there is no availability for the logistic unit before deactivating it.
Version Introduced: 2023
Revocable YES

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.