Stock rule Configuration based on Asset Type

Kalik2
Tera Expert

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

1 REPLY 1

Ashok Sasidhara
Tera Sage
Tera Sage

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.