Solved

Default Qty while entering Quote / SO entry

  • 1 January 2021
  • 4 replies
  • 74 views

Badge

Hello,

 

Is is possible to change the default qty from 0 to 1 while entering line items during quote or sales order entry.  This will speed up the process due to most line entry is only quantity of 1.

Thanks

icon

Best answer by vkumar 4 January 2021, 21:12

Hi @Nelson Yip 

 

In Addition to details provided above, out of the box option ‘Add Stock item’ always sets the quantity to ‘1’, when user selects an item from the list.  

Hope this helps, 

Wish you happy new year!

 

Regards,

View original

4 replies

I believe that this would need to be a customization on the form to force a default value into the qty field.

Hi Nelson,

you will need a customization to handle this requirement (set the qty by default to 1). According to my knowledge, there is no configuration in acumatica to achieve the required behavior.

Userlevel 4
Badge +1

Hi @Nelson Yip 

Yes, Its required customization and the same functionality we are using the Sales Order screen in one of our projects. Below is the customization code and hope this helps!!

 

 protected virtual void SOLine_OrderQty_FieldDefaulting(PXCache sender, PXFieldDefaultingEventArgs e, PXFieldDefaulting baseEvent)
{
baseEvent?.Invoke(sender, e);
SOLine row = e.Row as SOLine;
if (row == null) return;

if (row.OrderQty == 0 && Base.IsImport != true && (row.Behavior == "SO" || row.OrderType == "CM"))
{
e.NewValue = row.OrderQty = 1;
}
}

 

Userlevel 4
Badge +4

Hi @Nelson Yip 

 

In Addition to details provided above, out of the box option ‘Add Stock item’ always sets the quantity to ‘1’, when user selects an item from the list.  

Hope this helps, 

Wish you happy new year!

 

Regards,

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 — 2020  Acumatica, Inc. All rights reserved