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
|
|
ItemInventory FAST Query? |
Author |
Message |
|
Posted : 2009-02-06 10:33:56 |
Hi, I'm trying to keep my inventory 100% up to date on a website, all the time. Since QB's TimeModified doesn't update when items are invoiced/salesordered, the only way to do this is to run a query like this:
SELECT ListID, QuantityOnHand FROM ItemInventory UNOPTIMIZED
I have 10,985 inventory items, which makes this query take 33minutes -- making it difficult to have up--to-date inventory every hour. Is there a trick to make this run faster? I need my ACTUAL inventory numbers; this would be simple if Intuit used the timestamps in QB, but since they don't I do not see an alternative option.
Please advise, I'm using QODBC 9 and Enterprise Solutions 9 US edition. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2009-02-06 15:48:27 |
This is a major flaw in Intuit's qbXML SDK for QuickBooks. You can use the InventoryAdjustmentLine table TimeModified stamp to see stock adjustments. But if you're only after the true Qty on Hand at any point of time, without optimizer and timemodified issues, then this:
SELECT QuantityOnHand FROM ItemInventory where FullName='Hardware:Lk Doorknobs'
Can also be extracted directly out of the QuickBooks engine in real time like this instead:
sp_report InventoryValuationDetail show QuantityOnHand parameters ItemFilterFullNameWithChildren='Hardware:Lk Doorknobs' where RowType='TotalRow'
|
|
|
|
|