Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Updating invoiceline group items and group headerSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Sample Scripts Forum

 New Topic 
 
 Post Reply 
[1]  
 Updating invoiceline group items and group header 
 Author   Message 
  David Haroldsen 
  
 Group: Members 
 Posts: 13 
 Joined: 2007-03-10 
 Profile
 Posted : 2007-03-23 04:26:02
 Hello,

I'm attempting to make updates to group items and the group header item in existing invoice.  I'd like to be able to alter the quantity and price.  I'm getting an XML parsing error and I've read another post in here where it is said that doing this is not possible.  I know it's possible through the QB GUI to alter either the sub items or the header item, so it follows that there should be a way to do it via QODBC.  In any case here is the log of the error I get when trying to update the quantity of the header item (data is stored in the "footer" of the group item).

Is there another way to do this?  Or is it really not possible and if not why?
Thanks,
Dave

2007-03-22 10:57:31 QODBC Ver:  7.00.00.207 *********************************************************************************************************************
IsAService: False
SQL Statement: update invoiceline set invoicelinegroupquantity = 2 where txnid = 'F5AA5-1167860731' and invoicelinegroupseqno = 999
Error parsing complete XML return string (8)
Input XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?qbxml version="6.0"?>
<QBXML>
    <QBXMLMsgsRq onError = "continueOnError" responseData = "includeNone">
        <InvoiceModRq requestID = "1">
            <InvoiceMod>
                <TxnID>F5AA5-1167860731</TxnID>
                <EditSequence>1174522211</EditSequence>
                <InvoiceLineMod>
                    <TxnLineID>F5AA7-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineGroupMod>
                    <TxnLineID>F5AA8-1167860731</TxnLineID>
                    <InvoiceLineMod>
                        <TxnLineID>F5AA9-1167860731</TxnLineID>
                    </InvoiceLineMod>
                    <InvoiceLineMod>
                        <TxnLineID>F5AAA-1167860731</TxnLineID>
                    </InvoiceLineMod>
                    <InvoiceLineMod>
                        <TxnLineID>F5AAB-1167860731</TxnLineID>
                    </InvoiceLineMod>
                    <InvoiceLineMod>
                        <TxnLineID>F5AAE-1167860731</TxnLineID>
                    </InvoiceLineMod>
                    <InvoiceLineMod>
                        <TxnLineID>F5AB0-1167860731</TxnLineID>
                    </InvoiceLineMod>
                    <InvoiceLineMod>
                        <TxnLineID>F5AB1-1167860731</TxnLineID>
                    </InvoiceLineMod>
                </InvoiceLineGroupMod>
                <InvoiceLineMod>
                    <TxnLineID>F5AB3-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineMod>
                    <TxnLineID>F5AB4-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineMod>
                    <TxnLineID>F5AC1-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineMod>
                    <TxnLineID>F9C61-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineMod>
                    <TxnLineID>F9C65-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineGroupMod>
                    <Quantity>2.00000</Quantity>
                </InvoiceLineGroupMod>
            </InvoiceMod>
        </InvoiceModRq>
    </QBXMLMsgsRq>
</QBXML>

And an attempt to alter a sub-item in an invoice.
IsAService: False
SQL Statement: update invoiceline set invoicelinequantity = 2 where invoicelinetxnlineid = 'F5AAB-1167860731'
Error parsing complete XML return string (8)
Input XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?qbxml version="6.0"?>
<QBXML>
    <QBXMLMsgsRq onError = "continueOnError" responseData = "includeNone">
        <InvoiceModRq requestID = "1">
            <InvoiceMod>
                <TxnID>F5AA5-1167860731</TxnID>
                <EditSequence>1174522211</EditSequence>
                <InvoiceLineMod>
                    <TxnLineID>F5AA7-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineGroupMod>
                    <TxnLineID>F5AA8-1167860731</TxnLineID>
                    <InvoiceLineMod>
                        <TxnLineID>F5AA9-1167860731</TxnLineID>
                    </InvoiceLineMod>
                    <InvoiceLineMod>
                        <TxnLineID>F5AAA-1167860731</TxnLineID>
                    </InvoiceLineMod>
                    <InvoiceLineMod>
                        <TxnLineID>F5AAB-1167860731</TxnLineID>
                    </InvoiceLineMod>
                    <InvoiceLineMod>
                        <TxnLineID>F5AAE-1167860731</TxnLineID>
                    </InvoiceLineMod>
                    <InvoiceLineMod>
                        <TxnLineID>F5AB0-1167860731</TxnLineID>
                    </InvoiceLineMod>
                    <InvoiceLineMod>
                        <TxnLineID>F5AB1-1167860731</TxnLineID>
                    </InvoiceLineMod>
                </InvoiceLineGroupMod>
                <InvoiceLineMod>
                    <TxnLineID>F5AB3-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineMod>
                    <TxnLineID>F5AB4-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineMod>
                    <TxnLineID>F5AC1-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineMod>
                    <TxnLineID>F9C61-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineMod>
                    <TxnLineID>F9C65-1167860731</TxnLineID>
                </InvoiceLineMod>
                <InvoiceLineMod>
                    <Quantity>2.00000</Quantity>
                </InvoiceLineMod>
            </InvoiceMod>
        </InvoiceModRq>
    </QBXMLMsgsRq>
</QBXML> 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-03-23 08:29:40
To be honest this is simply a bug that hasn't been fixed since Jul'2006, the best approach with QODBC is to actually read each of the ItemGroup lines and post each group item as individual items on a invoice line. ItemGroups are really templates of a group of items that doesn't reduce stock like assemblies. So you can read what's in a group, write each line item in the group and then you will be free to modify each item in the invoiceline as you please. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-03-24 10:56:28
Please post replies to your post and don't start another topic. Yes, there's currently a bug when using QODBC v7 and item groups in estimates, purchase orders and invoices. It's reference Ticket No. is BR00000009 Dated 19 Jul 2006 13:15:51 if you want to raise the matter directly with your local sales office. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to