Stockroom

chirag sorathi1
Kilo Contributor

I tried to assign a stockroom in the hardware table. Unfortunately, when I was updating, I selected stockroom and it sets location automatically and then when I clicked "Update". It saved the location but didn't save the stockroom. Please find attached pictures for a better understanding. 

 

I really appreciate your help.

 

Thanks

 

find_real_file.png

 

find_real_file.png

1 ACCEPTED SOLUTION

Sulabh Garg
Mega Sage
Mega Sage

Hello Chirag,

It could happen if you are changing the state from "in stock" to "in Use". This is OOB behavior and it will remove the stockroom but retain the updated location.

Steps I followed and I am able to reproduce the issue on my PDI

1) Move the state from "in use" to "In stock" and filled the stockroom and location gets automatically update through below client script. Save the form. Stockroom and updated location got autosaved.

2) Now I moved the state from "in stock" to "in use", Now stockroom goes empty but the updated location (in step 1) remain intact.

 

Below is the client script which is setting up the location based on the stockroom.

Client script - Set Location from stockroom

 

Hope it helps!!

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!! 

Regards

Sulabh Garg

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

View solution in original post

3 REPLIES 3

AnirudhKumar
Mega Sage
Mega Sage

Is this system behavior consistent? I mean are you able to replicate this issue with other hardware too?

If Yes, then check client scripts and business rules for scripts containing the keyword 'stockroom'.

If No, then this is a one-off type issue which you can ignore for now but keep an eye on.

Sulabh Garg
Mega Sage
Mega Sage

Hello Chirag,

It could happen if you are changing the state from "in stock" to "in Use". This is OOB behavior and it will remove the stockroom but retain the updated location.

Steps I followed and I am able to reproduce the issue on my PDI

1) Move the state from "in use" to "In stock" and filled the stockroom and location gets automatically update through below client script. Save the form. Stockroom and updated location got autosaved.

2) Now I moved the state from "in stock" to "in use", Now stockroom goes empty but the updated location (in step 1) remain intact.

 

Below is the client script which is setting up the location based on the stockroom.

Client script - Set Location from stockroom

 

Hope it helps!!

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!! 

Regards

Sulabh Garg

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

Sulabh Garg
Mega Sage
Mega Sage

This is the BR "Reset Stockroom" which reset the stockroom, Please check the condition  of this BR and through this BR only stockroom get reset.

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!! 

Regards

Sulabh Garg

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg