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 INSERTSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 INVOICE INSERT 
 Author   Message 
  Sergio 
  
 Group: Members 
 Posts: 2 
 Joined: 2008-05-02 
 Profile
 Posted : 2008-05-02 16:15:05
Hello,
I'm trying to insert an invoice with the following insert statement:
INSERT INTO invoice(IsToBePrinted,CustomerMsgRefListID,TxnDateMacro,TemplateRefListID,ARAccountRefListID,
                CustomerRefListID,RefNumber,
                BillAddressAddr1,BillAddressAddr2,BillAddressCity,BillAddressState,BillAddressPostalCode,
                ShipAddressAddr1,ShipAddressAddr2,ShipAddressCity,ShipAddressState,ShipAddressPostalCode,
                TermsRefListID,TermsRefFullName,DueDate,SalesRepRefFullName,ShipDate,Subtotal)
VALUES(1,'90000-1152722338','All','120000-1136044388','3B0000-1134682682',
                 '80009585-1209700445','QBOE1',
                 'ANDRES MUNOZ VASQUECITO','5040 SW 65 AVE','MIAMI','FL','33',
                 'ANDRES MUNOZ VASQUECITO','5040 SW 65 AVE','','','',
                  '80000-1136047724','COD', {d '2008-05-02'},'Clara Barbosa', {d '2008-05-02'},33.0)

I've changed the TxnDateMacro and replaced it with TxnDate with the value of {d '2008-05-02'} and I get the same result.
What I need to do is insert the invoice and then insert some invoice lines.
As the RefNumber I'm giving the value QBOE1 because i saw it on one of the threads of the forum, but i'm not sure if its ok.
The error that I get is "Not supported" after executing the sql.

Thanks a lot,

Sergio 

 
Thanks,
Sergio 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-05-03 09:55:15

Ok, please see:
How can I create multiple lines in the Invoice, Purchase, Journal and other tables? 
How do I create a new Customer, invoice them and mark the invoice as paid? 
How do I add a Inventory Item using QODBC? 
How do I insert data into ItemNonInventory? 
How do I insert data into ItemService?  

You cannot insert invoice lines into the invoice table. First the invoice lines need to created (inserted) into the InvoiceLine table and then you can insert the transaction header information into the Invoice table.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to