Skip to main content
Solved

Ideal way to deactivate a part

  • November 11, 2021
  • 4 replies
  • 307 views

Forum|alt.badge.img+7

Hi Community,

When a part is deactivated from the inventory Including sales and purchasing part, system shouldn't allow transactions for the respective part, so can someone suggest the ideal way to deactivate a part from the inventory?

Best answer by Vimukthi Mahakumbura

@Malmee Amunugama I would connect a Part Status like this to the Inventory Part. 
When I try to create transactions, it stops me with an error. 

 

If not, you could also use a custom event for this. 

This topic has been closed for replies.

4 replies

Vimukthi Mahakumbura
Superhero (Customer)
Forum|alt.badge.img+19

@Malmee Amunugama I would connect a Part Status like this to the Inventory Part. 
When I try to create transactions, it stops me with an error. 

 

If not, you could also use a custom event for this. 


william.klotz
Superhero (Customer)
Forum|alt.badge.img+21
  • Superhero (Customer)
  • 479 replies
  • November 12, 2021

Hi @Malmee Amunugama ,

 

If you want the sales part to disable automatically when you make an inventory part inactive you would need to create an event and action which is triggered when the inventory part state changes to inactive.  In the event action you would need to write the plsql code to change the sales part to inactive.

 

Regards,

William Klotz


Forum|alt.badge.img+7
  • Author
  • Hero (Employee)
  • 18 replies
  • November 21, 2021

Hi @Vimukthi Mahakumbura 

Custom event solved the issue. 

Thanks for the help!

 

Regards,

Malmee.


Forum|alt.badge.img+7
  • Author
  • Hero (Employee)
  • 18 replies
  • November 23, 2021

Hi William,

 

Hi @Malmee Amunugama ,

 

If you want the sales part to disable automatically when you make an inventory part inactive you would need to create an event and action which is triggered when the inventory part state changes to inactive.  In the event action you would need to write the plsql code to change the sales part to inactive.

 

Regards,

William Klotz

 

Thank you for the insight!

 

Best Regards,

Malmee.