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 : How can I copy an estimate to an invoiceSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 How can I copy an estimate to an invoice 
 Author   Message 
  jeff 
  
 Group: Members 
 Posts: 76 
 Joined: 2006-06-03 
 Profile
 Posted : 2006-08-01 11:42:33

I have attempted to copy an estimate into a invoice, in general it works fine, but I am encountering some problems releated to the total amount of each item and subsequently the total of the estimate does not match the total of the new copied invoice.  

For example: When adding items in estimate the qodbc automatically adds markup. When adding items in invoices there is no mark up applied. I can work around this problem for regular items by setting the InvoiceLineAmount, but how can I work around this problem for invoice items that belong to a group since group items are added by only inserting the header and each group item is automatically added by qodbc.

Thanks in advance.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-08-01 15:39:27

See: How do I convert an Estimate to a Sales Order? and How do I convert a Sales Order into an Invoice? 

You can also read the estimate directly and write the Invoice without a Sales Order if you wish.

 

  Top 
  jeff 
  
 Group: Members 
 Posts: 76 
 Joined: 2006-06-03 
 Profile
 Posted : 2006-08-02 03:49:12

I have seen the tutorials, but they do not help me. Here is the problem stated more clearly:

I create an estimate with a single group item from the demo qb file. The group item is called Rock Fountain Group. The estimate is created with the following lines:

Rock Fountain - Group Header

Fountain - Group Item $275.00

Pump - Group Item $56.00

Concerete - Group Item $0.00

Installation - Group Item $35.00

                       Group Footer $385.00

I then want to copy this estimate into an invoice. To do so I use:

Insert into InvoiceLine(InvoiceLineGroupItemGroupRefListID,FQSaveToCache) Values ('1C0000-934380927',true)

Insert into "Invoice" (CustomerRefListID) Values ('840001-1197739634')

The above sql statement generates the following line estimate:

Rock Fountain - Group Header

Fountain - Group Item $275.00

Pump - Group Item $56.00

Concerete - Group Item $0.00

Installation - Group Item $30.00 //THIS PRICE IS DIFFERENT THEN ON THE ESTIMATE

                       Group Footer $380.00 //THIS PRICE IS DIFFERENT ALSO

The problem is that qodbc does not create Estimates and Invoices the same way for the same item group. The Estimate TotalAmount does not match the Invoice TotalAmount.  How can this be fixed?

//Note: I have tried to add use the following query and received xml parse error after running the insert into Invoice

Insert into InvoiceLine(InvoiceLineGroupItemGroupRefListID, InvoiceLineGroupTotalAmount,FQSaveToCache) Values ('1C0000-934380927', 391.13,true)

Insert into "Invoice" (CustomerRefListID) Values ('840001-1197739634')

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-08-02 08:56:45
So what happens when you create a new Estimate and a new Invoice with the Rock Fountain group using the QuickBooks user interface? Are the total values the same? 

  Top 
  jeff 
  
 Group: Members 
 Posts: 76 
 Joined: 2006-06-03 
 Profile
 Posted : 2006-08-04 09:24:19

When creating a new Estimate with rock fountain group and a new invoice with rock fountain group the total amounts are different, exactly like the example that I listed.  However if I use the "copy to invoice" feature in quickbooks my invoice totals are the same as the estimate totals.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-08-04 11:48:01
Exactly! So you will need to do the same thing using QODBC. Copy the estimate (marked up) amounts to the invoice.... you just will have to wait until we get ItemGroup line updating working in Estimate, Sales Orders and Invoices. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to