我正在使用 Web 服务 API 在 Acumatica 中创建新的比尔。我写了下面的代码,但它抛出了异常。
寻找以下问题的解决方案。任何帮助表示赞赏。
按钮保存被禁用。在 PX.Data.PXAction`1.d__c.MoveNext() 在 PX.Api.SyImportProcessor.SyStep.CommitChanges(对象 itemToBypass,PXFilterRow[] targetConditions)
AP301000Content AP301000Header = context.AP301000GetSchema();
context.AP301000Clear();
AP301000Content[] AP301000ImportHeaderResult = context.AP301000Submit
(
new Command[]
{
new Value { Value = "ARKTAK", LinkedCommand = AP301000Header.DocumentSummary.Vendor },
new Value { Value = "Bill", LinkedCommand = AP301000Header.DocumentSummary.Type },
new Value {Value = "ARKTAK ref123", LinkedCommand = AP301000Header.DocumentSummary.VendorRef },
new Value{Value = "False", LinkedCommand = AP301000Header.DocumentSummary.Hold },
new Value{Value = "MAIN ", LinkedCommand = AP301000Header.DocumentSummary.Location },
new Value{Value = "90D", LinkedCommand = AP301000Header.DocumentSummary.Terms },
new Value{Value = "3/8/2015", LinkedCommand = AP301000Header.DocumentSummary.DueDate },
new Value{Value = "12/8/2014", LinkedCommand = AP301000Header.DocumentSummary.CashDiscountDate },
new Value{ Value = "MAIN", LinkedCommand = AP301000Header.FinancialDetailsLinkToGL.Branch},
new Value{ Value = "200000", LinkedCommand = AP301000Header.FinancialDetailsLinkToGL.APAccount},
new Value{ Value = "US-00-00-US-000", LinkedCommand = AP301000Header.FinancialDetailsLinkToGL.APSubaccount},
new Value{ Value = "3/8/2015", LinkedCommand = AP301000Header.FinancialDetailsDefaultPaymentInfo.PayDate},
new Value{ Value = "MAIN", LinkedCommand = AP301000Header.FinancialDetailsDefaultPaymentInfo.Location},
AP301000Header.Actions.Save, AP301000Header.DocumentSummary.ReferenceNbr
}
);
谢谢,马尼什