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 do I create a Item Assembly (ItemInventoryAssembly)?Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Sample Scripts Forum

 New Topic 
 
 Post Reply 
[1]  
 How do I create a Item Assembly (ItemInventoryAssembly)? 
 Author   Message 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-08-21 11:24:08
This creates one ItemInventoryAssembly with two lines. Note the FQSaveToCache field, set to True except on the last one.

INSERT INTO "ItemInventoryAssemblyLine" ("Name", "IsActive", "SalesDesc", "IncomeAccountRefListID",
"COGSAccountRefListID", "AssetAccountRefListID",
"ItemInventoryAssemblyLnItemInventoryRefListID", "ItemInventoryAssemblyLnQuantity",
"FQSaveToCache")
VALUES ('NewAssembly1', 1, 'QODBC New Assembly1', '1B0000-933270542', '1E0000-933270542',
'60000-933270541', '5A0000-1197758364', 2.0, 1)

INSERT INTO "ItemInventoryAssemblyLine" ("Name", "IsActive", "SalesDesc", "IncomeAccountRefListID",
"COGSAccountRefListID", "AssetAccountRefListID",
"ItemInventoryAssemblyLnItemInventoryRefListID", "ItemInventoryAssemblyLnQuantity",
"FQSaveToCache")
VALUES ('NewAssembly1', 1, 'QODBC New Assembly1', '1B0000-933270542', '1E0000-933270542',
'60000-933270541', '5B0000-1197761433', 1.0, 0)

and the result looks like this in QuickBooks 2006:

See also: Trying to update ItemInventoryAssemblyLine table 

 

  Top 
  mikea 
  
 Group: Members 
 Posts: 7 
 Joined: 2006-10-25 
 Profile
 Posted : 2007-10-17 16:48:15

This seems to work for adding multiple items (ItemInventoryAssemblyLine records) to an assembly when the assembly is first created.

However I am having trouble adding new ItemInventoryAssemblyLine records to an existing assembly. When I try to repeat an INSERT with FQSaveToCache set to 0, then I get an error

QODBC Error 3100 - The name "NewAssembly1" of the list element is already in use (#10053)

any help on this will be greatly appreciated!

regards

Mike

 

 

 

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

I don't think we can add items to an existing assembly. The workaround would be to create a new assembly with the additional items. 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to