Solved

Stock warning when quantity stock is less than safety stock

  • 5 September 2022
  • 2 replies
  • 135 views

Userlevel 1

Hi All,

 

I would like to ask regarding the stock warning. Is it possible to create a warning if the stock less than determined safety stock when creating Sales Order?

 

Thank you.

icon

Best answer by Naveen Boga 5 September 2022, 11:26

View original

2 replies

Userlevel 7
Badge +12

Hi @nadia02 

I believe we can do customization to trigger a yellow warning message when  stock is less than safety stock Just Like Acumatica showing available for shipping is zero thrown an error on hand qty goes negative

we can use the same logic but not sure t the result

 

Userlevel 7
Badge +17

Hi, @nadia02  Yes, you can show a warning message with the small piece of customization.

 

Here is the sample code for reference.

 public virtual void SOLine_InventoryID_FieldSelecting(PXCache sender, PXFieldSelectingEventArgs e, PXFieldSelecting InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(sender, e);
SOLine row = (SOLine)e.Row;
if (row == null) return;

if(ADD CONDITION)
{

PXUIFieldAttribute.SetWarning<SOLine.inventoryID>(sender, row, "Add Warning Message HERE!!");
}
}

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved