Stock rule Configuration based on Asset Type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 03:21 PM
OOTB we can define stock rules based on the Model, but we want to define stock rules based on a field Asset Type from the hardware table. What configuration can we make on OOTB Stockrule form to achieve this?
FYI : Asset Type has data like Laptops, Servers etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 07:42 AM
In the stock rules table, you would need to create a new reference field for Asset type and make the 'Model' field as not mandatory. Stock rules are processed by a script include named 'ProcessStockRules'. You might have to deactivate this and create a similar script include where asset type is considered. You would also need to consider whether any changes are required in other script includes and business rules which are running on stock rules table.
However these are NOT recommended due to the following reasons:
1. It is too much customization and deviation from OOB which might cause issues in future
2. From a process best practices perspective also, it is better to finalize the list of standard Models which the organization is using at various locations and do the restocking by defining stock rules based on those Models. That is what is being done using the OOB stock rules table.