简体   繁体   English

如何在 Quickbooks 桌面发票中添加 SO Number 字段。 我无法在发票添加的 api 参考中找到它

[英]How to add S.O. Number field in invoice of Quickbooks desktop. I am unable to find it in the api reference of invoice add

<?xml version="1.0"?>
<?qbxml version="13.0"?>
<QBXML>
    <QBXMLMsgsRq onError="stopOnError">
        <InvoiceAddRq requestID="2">
            <InvoiceAdd>
                <CustomerRef>
                    <ListID>80000002-1572341266</ListID>
                </CustomerRef>
                <TxnDate>2019-10-26</TxnDate>
                <RefNumber>12:01 PM</RefNumber>
                <PONumber>65</PONumber>
                <SalesRepRef>
                    <ListID>80000001-1572347694</ListID>
                </SalesRepRef>
                <FOB>gdgdgs</FOB>
                <Memo>Memo Customer Memo</Memo>
                <Other>OtherInfo</Other>
                <InvoiceLineAdd>
                    <ItemRef>
                        <ListID>8000000E-1572333361</ListID>
                    </ItemRef>
                    <Amount>0.00</Amount>
                    <Other1>India</Other1>
                    <Other2>Punjab</Other2>
                </InvoiceLineAdd>
            </InvoiceAdd>
        </InvoiceAddRq>
    </QBXMLMsgsRq>
</QBXML>

I have formed above xml to add invoice in Quickbooks desktop but I am unable to find any field named SO Number in api reference of Quickbooks desktop.我已在 xml 上方形成以在 Quickbooks 桌面中添加发票,但我无法在 Quickbooks 桌面的 api 参考中找到任何名为 SO Number 的字段。 Kindly help me with that as I am stuck with this issue and I am unable to get any help in the api reference documentation of Quickbooks Desktop.请帮我解决这个问题,因为我遇到了这个问题,我无法在 Quickbooks Desktop 的 api 参考文档中获得任何帮助。

You can add a LinkedTxnID element to the InvoiceAddRq to accomplish this.您可以将 LinkedTxnID 元素添加到 InvoiceAddRq 来完成此操作。

<LinkToTxnID >IDTYPE</LinkToTxnID> <!-- optional, may repeat -->

You can also link specific invoice lines to sales order lines by adding the element below to InvoiceLineAdd.您还可以通过将以下元素添加到 InvoiceLineAdd 将特定发票行链接到销售订单行。

<LinkToTxn> <!-- optional -->
    <TxnID >IDTYPE</TxnID> <!-- required -->
    <TxnLineID >IDTYPE</TxnLineID> <!-- required -->
</LinkToTxn>

In both cases, note that the ID you need to specify is the linked transaction's ListID, not the RefNumber.在这两种情况下,请注意您需要指定的 ID 是链接事务的 ListID,而不是 RefNumber。

If you are using the QBSDK, you can do the equivalent as follows:如果您使用的是 QBSDK,您可以执行以下等效操作:

// Add link at transaction level
InvoiceAddRq.LinkToTxnIDList.Add("000000-0000000000");

// Add link at line level
InvoiceLineAdd.LinkToTxn.TxnID.SetValue("000000-0000000000");
InvoiceLineAdd.LinkToTxn.TxnLineID.SetValue("000000-0000000000");

For more information, see the IDN Onscreen Reference有关详细信息,请参阅IDN 屏幕参考

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

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