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 : Creating an InvoiceSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v8 Forum

 New Topic 
 
 Post Reply 
[1]  
 Creating an Invoice 
 Author   Message 
  Ken 
  
 Group: Members 
 Posts: 3 
 Joined: 2008-08-20 
 Profile
 Posted : 2008-09-13 05:45:50

I'm creating multi-line invoices with seperate commands for Invoice Lines and a final Insert for the Invoice Header.

Everthing is working except for one thing and that is getting a class on each item.  I'm including the Class on the Invoice Line Insert and if I use the VB Demo prgram I can see that The ClassRefListID and ClassRefFullName have been Polulated with the correct information in the InvoiceLine Table.  The problem is when I Look at the Invoice in QuickBooks the Class is not filled in on each Item Line but is correct at the Invoice Header Level.

Any Ideas on what I'm doing wrong ?

The SQL Command I'm using to insert Invoice Lines is:

 

    stSQL = "INSERT INTO InvoiceLine(InvoiceLineItemRefListID,ClassRefListID,ClassRefFullName," & _
            "InvoiceLineDesc,InvoiceLineQuantity,InvoiceLineRate," & _
            "InvoiceLineAmount,InvoiceLineSalesTaxCodeRefListID,FQSaveToCache) " & _
            "VALUES('" & stItemRefID & "','" & m_stClassRefListID & "','" & m_stClassRefFullName & _
            "','" & m_stProductCodeDescription & _
            "'," & m_iQty & "," & m_dUnitPrice & "," & (m_iQty * m_dUnitPrice) & _
            ",'" & m_stSalesTaxCodeRefListID & "',1)"

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-09-14 15:55:32
See: Using ClassRefListID when inserting invoice lines  

  Top 
  Ken 
  
 Group: Members 
 Posts: 3 
 Joined: 2008-08-20 
 Profile
 Posted : 2008-10-18 05:17:14

Tom

That is the example I followed and again the invoice is created and if I use vbDemo to look at the records in the invoiceline table I can see that

the ClassRefListID and ClassRefFullName fields have been populated with the correct information.  But if I look at the invoice in Quickbooks the

class on the Line Items is blank.  How can the class be in the invoiceline record but not be shown when looking at the invoice in quickbooks.

Also any company reports that are run do not reflect the class.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-10-18 11:00:49

Sorry, but my Plan B Using ClassRefListID when inserting invoice lines example clearly displays in the invoice lines in QuickBooks:-

 

 

  Top 
  Ken 
  
 Group: Members 
 Posts: 3 
 Joined: 2008-08-20 
 Profile
 Posted : 2008-10-21 22:51:42

Tom

One question I have on your plan B using SP_LASTINSERTID to get the last ID Inserted into the invoice

file, is how does that work if we have more than one invoicing station working at once.  Will there be

a potenial of getting the ID of a different invoice, Or does sp_LastInsertID only get the last ID you did.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-10-22 07:55:15
SP_LASTINSERTID simply displays information from the last returned XML Request from QuickBooks to QODBC for that table. So it's unique to that QODBC session. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to