[QODBC-Desktop] How to insert SalesOrderLine item to an existing SalesOrder
Posted by Jack - QODBC Support on 09 November 2016 12:42 PM
|
|
How to insert a SalesOrderLine item into an existing SalesOrderProblem Description: I routinely create new sales orders with queries similar to this: Solution:You need to add the field TxnID into the insert query. The field "TxnID" is available in the insert query only when the TxnID value points to an existing entity in QuickBooks. If you want to add a line item record to an existing SalesOrder, please remove header information fields like "CustomerRefListID" and "RefNumber" from your query. Here is an example of adding one line item to an existing SalesOrder "4912-1071512816" in our test company file: INSERT INTO SalesOrderLine (TxnID, SalesOrderLineItemRefListID, SalesOrderLineDesc, SalesOrderLineQuantity, SalesOrderLineRate, SalesOrderLineAmount) VALUES ('4912-1071512816', '160000-933272656', '4m Steel Ladder', 1.00000, 1.00000, 150.00) Please notice that all values in the query come from our test company file. Please replace them using your value when running it on your end. And you can also add other line item columns to this query according to your request. | |
|