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 : Invoice dataSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Invoice data 
 Author   Message 
  Michael 
  
 Group: Members 
 Posts: 1 
 Joined: 2006-10-12 
 Profile
 Posted : 2006-10-12 08:00:46

I'm extracting invoice data from quickbooks 2005  from the "Invoice" (Header) and "InvoiceLine" (Line Items) tables. Inside quickbooks an invoice shows as paid, but in the "Invoice" data from the extraction the "IsPaid" field shows False. However, in the "InvoiceLines" data the items for the same invoice show "IsPaid" as true. Can somebody explain to me how I would go about reading this data and determing if it's actually been paid or not?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-10-12 11:23:57

First of all, you don't normally need to link InvoiceLine to Invoice because InvoiceLine contains most of the information in the Invoice header anyway. But to prove my point, and address your point, I ran the following queries:

SELECT InvoiceLine.TxnID, InvoiceLine.invoiceLineTxnLineID, Invoice.TxnID,
InvoiceLine.IsPaid, Invoice.IsPaid 
FROM InvoiceLine, Invoice
where InvoiceLine.TxnID = Invoice.TxnID

Results 917 Rows

SELECT InvoiceLine.TxnID, InvoiceLine.invoiceLineTxnLineID, Invoice.TxnID,
InvoiceLine.IsPaid, Invoice.IsPaid 
FROM InvoiceLine, Invoice
where InvoiceLine.TxnID = Invoice.TxnID
and InvoiceLine.IsPaid <> Invoice.IsPaid

Results 0 Rows

There were no differences found. I suggest you run this on your system too! If there are results, try this instead:

SELECT InvoiceLine.TxnID, InvoiceLine.invoiceLineTxnLineID, Invoice.TxnID,
InvoiceLine.IsPaid, Invoice.IsPaid 
FROM InvoiceLine, Invoice Unoptimized
where InvoiceLine.TxnID = Invoice.TxnID
and InvoiceLine.IsPaid <> Invoice.IsPaid

If there only 0 results using the Unoptimized tag, then you will need to resync you optimized tables by doing:

sp_optimizefullsync InvoiceLine

and

sp_optimizefullsync Invoice

 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to