Omnium supports setting a discontinued date on products. This feature helps you manage product lifecycles and prevents discontinued products from being added to purchase orders.
Add a discontinued date
Open the product in the product overview.
Enter a discontinued date in the designated field.
Save the product.
Filter by discontinued date
In the product list, you can filter to see:
Products with a future discontinued date.
Products that have already been discontinued.
Warning icon on discontinued products
When a product has passed its discontinued date, it will be marked with a warning icon in the product list.
Validation in purchase orders
To ensure discontinued products cannot be added to purchase orders, you can enable the following validator.
Navigate to config -> advanced -> connectors
Open JSON:
And paste in the JSON below.
{
"name": "ProductDiscontinuationValidator",
"displayName": "ProductDiscontinuationValidator",
"isAuthenticatedManually": false,
"timeOut": "00:00:00",
"implementations": [
"IPurchaseOrderValidator"
],
"properties": [],
"disableStandardErrorPolicy": false,
"enabledForMarkets": [],
"disabledForMarkets": [],
"enabledForMarketGroups": [],
"disabledForMarketGroups": []
}
Once enabled, any attempt to add a discontinued product to a purchase order will trigger an error message.