1

Is there a way to update a sales order which is already created before?

I use C# and qbxml, but I couldn't find any XML statement or link about that. Is it possible or not?

4

1 回答 1

1

I finally found the answer. Well, in order to update/modify a sales order, we need to use the "SalesOrderModRq" option.

Here is my example:

<?qbxml version="11.0"?>
<QBXML>
    <QBXMLMsgsRq onError="stopOnError">
        <SalesOrderModRq>
            <SalesOrderMod>
                <TxnID>1407-1346251803</TxnID>
                <EditSequence>1354787709</EditSequence>

                <SalesOrderLineMod>
                    <TxnLineID>1409-1346251803</TxnLineID>
                    <ItemRef>
                        <FullName>Item</FullName>
                    </ItemRef>
                    <Desc>Item Description</Desc>
                    <Quantity>5</Quantity>
                    <Rate>10.00</Rate>
                    <Amount>50.00</Amount>
                    <IsManuallyClosed>false</IsManuallyClosed>
                </SalesOrderLineMod>
            </SalesOrderMod>
        </SalesOrderModRq>
    </QBXMLMsgsRq>
</QBXML>
于 2013-03-31T23:33:37.560 回答