Use Local stockroom for Hardware request fulfillment

M_ Scheffer
Mega Contributor

Hi there,

I am trying to figure out how "Source requests from local stockrooms" needs to be configured.

Is is a new feature available from Quebec.

I have set the property glide.asset.procurement.sourcing.local_stock_transfer to true, which gives me the 3rd option when sourcing a request. 

find_real_file.png

I have to use the sub-worklfow in order to create the proper task(s) to deliver the asset. So far so good.

However I cannot figure out how I can get stock in this local stockroom. It is not a "regular" on-site stockroom. (In fact also my On-site stockroom is only accessible via Transfer)  

It should look like this:find_real_file.png

With in the documentation I can not find any information that can help me solve this challenge.

Can anyone advise? 

Thanks in advance.

9 REPLIES 9

Yes and the solution is quit simple (once you know it ).

When you want to source from local stock it is important that the Requested for user location is identical to the location of the On-site stockroom.

If that is the case you can source a request from your local stock. 

 

  

Hi,

Just working on Asset management in the Quebec release. Sourcing from a Local Stockroom is not working on my side.

Location of Requested for = Location of the Stockroom

Stockroom type = On Site

Requested Items are in stock in the Stockroom

 

Any suggestions?

 

Many thanks in advance,

 

Ed 

property glide.asset.procurement.sourcing.local_stock_transfer has been set to true

and

requested for location = stockroom location 

should do the trick

Nilanjan Bose
Kilo Contributor

Hello Community, 

I am following the same procedure that you have mentioned. 

 

Requested by Location == Stockroom location

Stockroom location == alm_stockroom (in case of reference)

glide.asset.procurement.sourcing.local_stock_transfer = True

 

Still I am not seeing the In Stock being updated. Any leads.

 

Regards

NIlanjan

Scott Halverso1
Mega Guru
Mega Guru

see script include called ProcSourceRequestManager for the conditions.  For me I had to make sure the asset was not only in the stockroom that matched the location of the requested for person, but the asset state was in stock and substate is available.

 

_getLocalInstockForModel: function(item, excludeStockroom) {
		if (!item.showCard.local
			|| !item.requested_user.location) {
			return 0;
		}
		var count = 0;
		var gr = new GlideAggregate('alm_asset');
		global.AssetUtils.addHAMPAssetQuery(gr, global.AssetUtils.ASSET_FUNCTION_FEATURE.SOURCING);
		gr.addQuery('model', item.cat_item.model);
		gr.addQuery('install_status', global.AssetUtils.INSTOCK_STATUS);
		gr.addQuery('substatus', global.AssetUtils.AVAILABLE_SUBSTATUS);
		if(!gs.nil(excludeStockroom))
			gr.addQuery('stockroom', 'NOT IN', excludeStockroom);
		gr.addQuery('stockroom.location', item.requested_user.location);
		gr.addAggregate('SUM', 'quantity');
		gr.groupBy('model');
		gr.setOrder(false);
		gr.query();
		if (gr.next()) {
			count = parseInt(gr.getAggregate('SUM', 'quantity'));
		}
		return count;
	},