Solved

Sales Order API

  • 4 October 2023
  • 1 reply
  • 64 views

Userlevel 2
Badge

Hi,

I’m using the endpoint of Acumatica to create a SO but, when I use this  code the order quantity is set to 0. I need to put this field disable because another field is filling it. 

 protected virtual void _(Events.RowSelected<SOLine> e)
{
PXUIFieldAttribute.SetEnabled<SOLine.orderQty>(e.Cache, e.Row, false);
}

Thank,

EV

icon

Best answer by Django 4 October 2023, 17:45

View original

1 reply

Userlevel 7
Badge +5

I’m not sure what your question is. Do you want to ignore what someone using the endpoint puts into the OrderQty field?

In your graph code, if you need different logic based on whether someone is accessing the graph via the API or not, you can look at the PXGraph.IsContractBasedAPI boolean.

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