简体   繁体   English

GP 10 econnect,GetNextSOPNumber方法的第二个参数的用途(或可能的值)

[英]GP 10 econnect , What is the use (or possible values) of the second parameter of the GetNextSOPNumber method

I'm using eConnect 10 to insert a document in GP 10, The document can be one of several types, the problem I have is that I do not know the meaning (and what value to pass) of the second parameter of the method, called docIdKey, In the MS documentation there is nothing other than the indication of "STDINV" or "STDORD" for creating orders and invoices. 我正在使用eConnect 10在GP 10中插入文档,该文档可以是几种类型之一,我的问题是我不知道方法第二个参数的含义(以及要传递的值),在MS文档中,除了用于创建订单和发票的“ STDINV”或“ STDORD”指示外,没有其他内容。

Can somebody point me (or explain to me) the meaning of this parameter? 有人可以指出我(或向我解释)此参数的含义吗?

Thank, Ignacio 谢谢,伊格纳西奥

            GetNextDocNumbers sopTransNumber = new GetNextDocNumbers();
            switch (transactionType)
            {
                case GetNextDocNumbers.SopType.SOPQuote:
                    nextTransactionNumber = sopTransNumber.GetNextSOPNumber(GetNextDocNumbers.IncrementDecrement.Increment, ????, GetNextDocNumbers.SopType.SOPQuote, connectionString);
                    break;
                case GetNextDocNumbers.SopType.SOPOrder:
                    nextTransactionNumber = sopTransNumber.GetNextSOPNumber(GetNextDocNumbers.IncrementDecrement.Increment, "STDORD", GetNextDocNumbers.SopType.SOPOrder, connectionString);
                    break;
                case GetNextDocNumbers.SopType.SOPInvoice:
                    nextTransactionNumber = sopTransNumber.GetNextSOPNumber(GetNextDocNumbers.IncrementDecrement.Increment, "STDINV", GetNextDocNumbers.SopType.SOPInvoice, connectionString);
                    break;
                case GetNextDocNumbers.SopType.SOPReturn:
                    nextTransactionNumber = sopTransNumber.GetNextSOPNumber(GetNextDocNumbers.IncrementDecrement.Increment, ????, GetNextDocNumbers.SopType.SOPReturn, connectionString);
                    break;
                case GetNextDocNumbers.SopType.SOPBackOrder:
                    nextTransactionNumber = sopTransNumber.GetNextSOPNumber(GetNextDocNumbers.IncrementDecrement.Increment, ????, GetNextDocNumbers.SopType.SOPBackOrder, connectionString);
                    break;
            }

Microsoft Dynamics GP has user-defined Document Types. Microsoft Dynamics GP具有用户定义的文档类型。 You can have multiple Document Types for each SOP transaction type. 每个SOP事务类型可以有多个单据类型。 As each Document Type has its own numbering, you need to know which Document Type you want to use when getting the next SOP Number. 由于每个文档类型都有其自己的编号,因此在获取下一个SOP编号时,您需要知道要使用的文档类型。

For example, you may have two Document Types set up for SOP Invoices, one named STDINV for normal invoices, and one named SERVINV for service invoices. 例如,您可能为SOP发票设置了两种文档类型,一种针对普通发票命名为STDINV,另一种为服务发票命名为SERVINV。 STDINV may be numbered INV099999, while SERVINV may be numbered SERVINV099999. STDINV可能编号为INV099999,而SERVINV可能编号为SERVINV099999。

Using the above example, you would specify either "STDINV" or "SERVINV" as the second parameter to GetNextSOPNumber() depending on which Document Type you want to use. 使用上面的示例,您可以根据要使用的文档类型,将“ STDINV”或“ SERVINV”指定为GetNextSOPNumber()的第二个参数。

You can see the Document Types that are set up in your company by going to Tools >> Setup >> Sales >> Sales Order Processing in Dynamics GP and clicking the Sales Document Setup button. 通过在Dynamics GP中转到“ 工具” >>“设置” >>“销售” >>“销售订单处理” ,然后单击“ 销售单据设置”按钮,可以查看公司中设置的单据类型。 Alternatively you can view the SOP40200 table within SQL Server. 或者,您可以在SQL Server中查看SOP40200表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM