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?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Sinan Ulker
  • 445
  • 8
  • 20
  • Have you tried updating already and if so, what have you tried? – Michael Celey Mar 31 '13 at 02:29
  • No i havent tried updating. i dont even know if it is possible. Because when I take a look at the sample codes which locates [here](https://ipp.developer.intuit.com/0085_QuickBooks_Windows_SDK/010_qb/0050_Documentation/Sample_Code). there is no update xml – Sinan Ulker Mar 31 '13 at 03:03
  • I finally found the answer. Well in order to update/modify a sales order. We need to use "SalesOrderModRq" option. – Sinan Ulker Mar 31 '13 at 05:32
  • If you've found the answer to your question then please post it here and mark it as accepted. There are others in the community that could possibly benefit from this sort of information. – Michael Celey Mar 31 '13 at 22:10
  • @MCeley i couldnt post it first i found it because there was reputation limit :) – Sinan Ulker Mar 31 '13 at 23:34
  • Don't forget to mark the answer as accepted if it solved your problem. To accept an answer, you click the check mark under the voting arrows on your question. Thanks for sharing your solution. – Michael Celey Apr 01 '13 at 00:25
  • I will but it says i could do it tomorrow. you'r welcome – Sinan Ulker Apr 01 '13 at 00:46

1 Answers1

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>
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Sinan Ulker
  • 445
  • 8
  • 20