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 : inserting invoice line to existing invoiceSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 inserting invoice line to existing invoice 
 Author   Message 
  Ross H 
  
 Group: Members 
 Posts: 1 
 Joined: 2007-02-02 
 Profile
 Posted : 2007-02-02 15:48:11
I am trying to update an existing invoice using qodbc 6.00.00.176 by inserting a new invoiceLine record.  The problem I am having is the GST is
applied to the new invoiceLine when the amount already includes the GST.  For example: the initial invoice is for $15.00 and if add another line also for $15.00 an addition $1.50 GST is added to the invoice.  The item used to create the tax invoice specifies the tax code is GST.  The initial invoice when created, does not charge the GST twice.

thanks in advance

Ross 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-02-02 21:49:27

Basically, QuickBooks calculates the GST for you. You should be adding $13.64, which with 10% GST will give you $15.00:-

INSERT INTO "InvoiceLine" ("TxnID", "InvoiceLineItemRefListID", "InvoiceLineDesc",
"InvoiceLineRate", "InvoiceLineAmount", "InvoiceLineTaxCodeRefListID")
VALUES ('5CA9-1197764583', '90000-1045537150', '4m Steel Ladder',
1.00000, 13.64, '90000-1045536338')

Where the value of TxnID is the TxnID for the existing invoice.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to