【发布时间】:2021-01-19 19:46:10
【问题描述】:
我尝试在 Acumatica 中通过代码创建货件,它在没有序列号的库存项目上运行良好,但我在使用序列号的项目时收到此错误
**PX.Data.PXRowPersistingException: 'SO Error: One or more lines have unassigned slots and / or lot / serial number**
我正在使用此代码创建货件:
SOShipmentEntrysoShipmentGraph=PXGraph.CreateInstance<SOShipmentEntry>();
soShipmentGraph.Clear();
DocumentList<SOShipment>created=newDocumentList<SOShipment>(soShipmentGraph);
SOShipmentsOShipment=newSOShipment();
created.Add(sOShipment);
soShipmentGraph.CreateShipment(newOrder,5,newOrder.OrderDate,true,SOOperation.Issue,created);
我错过了什么?谢谢。
【问题讨论】:
标签: acumatica