Contents tagged with SOOrder
today I want to write a short notice on how to create new sales order in Acumatica properly.
So, first of all take not that SOOrder type has two keys. One key is or order type, and second key is for OrderNbr.
It means that you can't do code like this:
var newSOrder = sOEntry.Document.Insert();
or actually you can, but later you'll face some issues with duplicated sales orders ( as I recently faced ).
But what you should do if you wish create new Sales order is the following code snippet:
var newSOrder = new SOOrder();
newSOrder.OrderType = sorder.AcumaticaOrderType; … more