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 : Can I Mark Zero Invoice Lines for deletion ?Search Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Can I Mark Zero Invoice Lines for deletion ? 
 Author   Message 
  robert 
  
 Group: Members 
 Posts: 1 
 Joined: 2008-08-02 
 Profile
 Posted : 2008-08-02 03:29:25

Our Quickbooks 2008 Invoice Detail file is huge because we create invoices from estimates. The estimate includes all possible items, we put quantities on the valid line for this invoice but invoice contains many items with 0 quantities.

 

I would like to write a program that marks those 0 quantity invoice detail line for deletion, and hopefully be able to remove them with file cleanup option. 

Is there a field in the item detail line item file that can mark the line as deleted ?

 

Thanks, Robert

 

 

 
robert porto 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-08-02 08:02:04

Run this query first to check if these are the correct Invoice Lines (items) to delete:

Select * from InvoiceLine where InvoiceLIneType = 'Item' and InvoiceLineQuantity = 0

And if that's what you want, backup your company file and run:

Delete from InvoiceLine where InvoiceLIneType = 'Item' and InvoiceLineQuantity = 0

and they will all disappear! After that run:

sp_optimizefullsync InvoiceLine

to fully re-sync your optimized InvoiceLine table with all the new deleted invoice lines!

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to