Hello Community,
In Indian market it's quite often requirement to consume rawmaterial from specific locators. So we have provided solution in the below approach. It might help when someone get this kind of requirement.
Rightnow when we create the Production Lines, it will find the locators with stock of raw material based on the defined policy. We have restrcited locators based on following approach.
We have added one checkbox in Locator Type Window "Available For Production". We have update the method getWarehouse by adding one boolean parameter isAvailableForProduction and updating both query by adding following whereclause code. This method is used to get the list of required locators based on the warehouse.
sql += " AND l.M_LocatorType_ID IN (SELECT M_LocatorType_ID FROM M_LocatorType WHERE IsAvailableForProduction='Y') ";
Please suggest if there is any other best approach is there.