Procurement Source Request -> One central Stockroom for all locations

Dominique
Tera Contributor

Hi all,

we have a customer that is going to start with procurement and asset sourcing.

Therefore they have only one central stockroom and no stockroom per location. So they don't want to create a transfer order for every asset-request. What we need is a possibility to make this central stockroom maybe like a virtual one....to have the stock available on the source request UI Page as "local stock" where ever the requester is located.

Then if there is stock in this central stockroom the agent would be able click the "consume" button.

My first idea was to edit the filter of the local stock html item to make the button available. But I can't find this widget. And I was not able to find a reference in the UI page. find_real_file.png

Has anyone a solution for this or an idea how we can handle it?

Thanks and kind regards,

Dominique

 

 

3 REPLIES 3

Dominique
Tera Contributor

Ok, I think I found a solution. In der Script Include "ProcSourceRequestManager" I edited two lines:

157: put the same code in this line like the above. This make the widget part "Local Stock" available.

            item['total_instock'] = this._getTotalInstockForModel(item.cat_item.model, excludeStockroom);
            item['local_instock'] = this._getTotalInstockForModel(item.cat_item.model, excludeStockroom); 
            // 			item['local_instock'] = this._getLocalInstockForModel(item, excludeStockroom);

410: just comment out this line to have the stockroom, stock and quantity available.

            if ('local_order' === String(orderType)) {
                // 				gr.addQuery('stockroom.location', 'IN', userLocation); 
            } else {

Of course you need to know, that with this customizations the "Transferable Stock" will always be 0.

I tested it and it seams to work out for our requirements.

 

Kind regards,

Dominique

Neil Holden1
Tera Contributor

Can this be applied if the stockroom is at the root or parent location? 

so you can have multiple locations on users (i.e. floors) but it will show stock is available if the stockroom is the building as this is the parent value?

Thomas Wright1
Tera Contributor

This is possible with the OOTB code in Vancouver now. Add the top level locations in your location heirarchy as Service locations to the central stockroom and it will magically become a local stockroom to all locations.