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 : 'Massive' item overhaul through QODBCSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 'Massive' item overhaul through QODBC 
 Author   Message 
  stormzen 
  
 Group: Members 
 Posts: 13 
 Joined: 2006-12-14 
 Profile
 Posted : 2006-12-14 06:53:12
Currently our inventory reads something like this: SUPERCATEGORY1:SUPERCATEGORY2:CATEGORY:SUBCATEGORY:ITEM .  That is, actual items are nested under text descriptions of categories.  I'd like to flatten this down to one item number: sscsi , for example, for each item.  I plan on using QODBC to do this... Here are the fields that I planned on modifying for each item:  Name, FullName (will be same as Name), Sublevel (will be 0), ParentRefListID (will be null), ParentRefFullname (will also be null).

I plan on updating each item by selecting its ListID that I previously queried from Quickbooks.  Am I missing anything important in theory?  Any idea if this will work in practice?

Thanks. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-14 08:41:13
The FullName and SubLevel columns are not UPDATEABLE. The more practical approach would be to delete the item and then recreate it with it's new name and quantity level. 

  Top 
  stormzen 
  
 Group: Members 
 Posts: 13 
 Joined: 2006-12-14 
 Profile
 Posted : 2006-12-14 09:00:29
Ouch.  We were looking at changing the items rather than entering them new so that we could retain avg cost and other item characteristics.
If FullName and SubLevel aren't updateable, is there a way to get QB to repopulate them? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-14 09:16:21

You can setup everything you need. Simply read out the values of the part, delete it, and then recreate it. This is an example of how to add an ItemInventory Item. 

INSERT INTO ItemInventory ("Name", "IsActive", "SalesDesc", "SalesPrice", "IncomeAccountRefListID", "PurchaseDesc", "PurchaseCost", "COGSAccountRefListID", "PrefVendorRefListID", "AssetAccountRefListID", "ReorderPoint", "QuantityOnHand", "TotalValue", "InventoryDate") VALUES ('NewItemInventory', TRUE, 'SalesNew', 0.0013, '1A0000-933270542', 'PurchaseNew', 0.005, '1E0000-933270542', 'A40000-1197774038', '60000-933270541', 25.0, 50.0, 10.0, {d'2005-10-07'})

And looks like this in the USA Sample Rock Castle Consturction company file in QuickBooks 2006:

 

  Top 
  stormzen 
  
 Group: Members 
 Posts: 13 
 Joined: 2006-12-14 
 Profile
 Posted : 2006-12-14 11:23:03
Is averagecost a writeable field?  That was the data that we didn't want to lose. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-14 12:53:57
In the above example, the Average Cost was determined by QuickBooks by dividing the "TotalValue" by the "QuantityOnHand", ie: $10.00 / 50 = 0.20 to come up with a Average Cost of twenty cents. 

  Top 
  stormzen 
  
 Group: Members 
 Posts: 13 
 Joined: 2006-12-14 
 Profile
 Posted : 2006-12-15 01:33:06
I remembered another reason why I didn't want to delete the items and start over:  Some of the items are still on purcahse orders and invoices.  Wouldn't deleting the items cause negative effects with those purchase orders and invoices? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-15 09:18:45

If you set the company file to single user mode you can remove the "Subitem of" setting of an Inventory Part by using the QuickBooks UI. So I beleive the same can be acheived with QODBC by doing:

UPDATE ItemInventory SET ParentRefListID=Null where Name='Cabinet Stop'

but I will need to test it using QODBC v7.00.00.201 as soon as I have it.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to