[QODBC-Desktop] How to add an Inventory Item using QODBC
Posted by brad waddell on 12 March 2009 05:21 PM
|
|
Example of Add an Inventory ItemNote: This is an example of how to add an ItemInventory Item. You can also use the stored procedure "sp_lastinsertid ItemInventory" immediately after the insert statement to retrieve a record set with the ListID of the new item you just inserted. Query in QODBCINSERT INTO ItemInventory ("Name", "IsActive", "SalesDesc", "SalesPrice", "IncomeAccountRefListID", "PurchaseDesc", "PurchaseCost", "COGSAccountRefListID", "PrefVendorRefListID", "AssetAccountRefListID", "ReorderPoint", "QuantityOnHand", "TotalValue", "InventoryDate") VALUES ('NewItemInventory', TRUE, 'SalesNew', 0.0013, 650002-1046372567', 'PurchaseNew', 0.005, '630003-1046215073', '390000-1039739488', '5A0002-1044562956', 25.0, 50.0, 10.0, {d'2021-12-15'})
Updating Inventory Item update ItemInventory set PurchaseDesc='Here are my details on purchase', salesdesc='Sales description goes here' where FullName='Air Conditioning.' Result in QuickBooksThe above queries result in this in the USA Sample company file in QuickBooks 2022:
NotesUnique Item FullName Before you add any new Inventory Items, you should check the ITEM table first to see if the new Inventory Item Name is not already used in QuickBooks. The ITEM table is a combined list of all Item tables in QuickBooks as below: ItemInventory, ItemNonInventory, ItemOtherCharge, ItemInventoryAssembly, ItemService, ItemFixedAsset, and ItemGroup (with minimum standard fields) Locate Item FullName To see the complete item names, you can run the following query in QODBC Support Wizard:
Entity Table ReferenceAnd like ITEM, there's an ENTITY table that's the combined list of all entity tables in QuickBooks: Customers, Employees, other names, and Vendors (with minimum standard fields)
| |
|