Skip to main content
Solved

Creating Stock items in inactive status

  • 6 June 2022
  • 3 replies
  • 282 views

Hi All,

Is there a way to set up the the system to create stock items in INACTIVE status by default.

Many thanks in advance.

3 replies

Badge +18

Hello, There is no system checkbox that will cause new stock items to default to Inactive status. I checked - there is no approval map available for Stock Items.

You can consider a Business Event to notify [Parts Managers] when a new stock item has been added to the system.

You can consider working with your partner to customize the system behavior and change the default status.

Userlevel 7
Badge +19

Hi, @nazly79  You can achieve this by having a small piece of code/customization. Please find the code below and also I have attached the customization package, you can directly deploy it in your instance and verify.

 public class InventoryItemMaint_Extension : PXGraphExtension<InventoryItemMaint>
{
#region Event Handlers

[PXMergeAttributes(Method = MergeMethod.Append)]
[PXRemoveBaseAttribute(typeof(PXDefaultAttribute))]
[PXDefault(typeof(InventoryItemStatus.inactive))]
protected virtual void InventoryItem_ItemStatus_CacheAttached(PXCache cache)
{
}
#endregion
}

 

 

Thanks a lot Laura and Naveen for the suggestions. I will look into these.

Reply