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 InvoiceLineOverrideItemAccountRefListID and/or InvoiceLineOverrideItemAccountRefFullNameSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Support Forum

 New Topic 
 
 Post Reply 
[1]  
 Updating InvoiceLineOverrideItemAccountRefListID and/or InvoiceLineOverrideItemAccountRefFullName 
 Author   Message 
  Eric McDonald 
  
 Group: Members 
 Posts: 2 
 Joined: 2007-01-17 
 Profile
 Posted : 2007-01-17 10:16:52

Greetings,

Invoices in our company were generated with the same items in two different business lines for the last year.  We want to seperate income by business line.  I created a new item with a different income account and tried changing the item on the invoices, resulting in the existing InvoiceLineItemDesc, *Qty, and *Rate defaulting to the values in the Item list.  This behavior occured in both the UI and when using update queries.

I tried instead to do this:

UPDATE InvoiceLine
SET InvoiceLineOverrideItemAccountRefListID = '810000-1168633178'
WHERE TxnID = '15E5-1152110699'
AND InvoiceLineSeqNo = 1

The result was 1 row affected, however, when I requeried the same row, the data was the same as before the update query. 

UPDATE InvoiceLine
SET InvoiceLineOverrideItemAccountRefFullName = 'Income: AOR Income'
WHERE TxnID = '15E5-1152110699'
AND InvoiceLineSeqNo = 1

Same result.

UPDATE InvoiceLine
SET InvoiceLineOverrideItemAccountRefListID = '810000-1168633178',
InvoiceLineOverrideItemAccountRefFullName = 'Income: AOR Income'
WHERE TxnID = '15E5-1152110699'
AND InvoiceLineSeqNo = 1

Same result.

sp_columns indicates that both InvoiceLineOverrideItemAccountRefListId and InvoiceLineOverrideItemAccountRefFullName are updatable.  I believe these columns exist to provide an account number alternate to the one listed in the item details.  This necessity arises when you change the account for an item that already has transactions against it.  In the UI you are promted to "make this the account from now on" or "make this the account including all past transactions" (paraphrased).  In the instance you select the first, the previous account number is placed in the Override field for existing transactions and the new account number is used by reference (lookup) from the Item table in future transactions.

What am I doing wrong?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-01-18 12:18:00

I'm not sure, but I always use the TxnLineID (for speed). I tested changing the Income Account without any problems using QODBC v7.00.00.204 and QuickBooks 2006 USA Premier Edition.

See: How do I change the Income Account for a Stock Item that has already has been invoiced? for more.

 

  Top 
  Eric McDonald 
  
 Group: Members 
 Posts: 2 
 Joined: 2007-01-17 
 Profile
 Posted : 2007-01-19 03:38:51

You are right about the InvoiceLineTxnLineID, thanks.  I figured out why it wasn't updating.  I was using the FullName of the account as it appeared in the query results from the Account table:

Income:AOR Income

The account FullName that worked was from the UI:

4100 · Income:4120 · AOR Income

Pretty goofy that it doesn't recognize the name of the account the way it is actually stored in the database.  Anyway, thank you for the help.  Now to update en masse.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to