Asset Status is Not being changed to "In-Store" by following the Request - Custom function Script

Asset Status is Not being changed to "In-Store" by following the Request - Custom function Script

Dear All,

I was following the Knowledge Base Article available at the link and while configuring the Off-boarding template the script works fine and also end the relationships with the User respective Assets but the status of the asset still be "In-Use" which should have been changed to "In Store" because we've end-the-relationship with the respective assets.

Link : https://pitstop.manageengine.com/portal/en/kb/articles/onboarding-and-offboarding-users

Regards,
Wajahath Farooq