AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AugSQL
AugSQL
QtyOnHand in INSite...
 
Notifications
Clear all

#AcumaticaTnT QtyOnHand in INSiteStatus vs. QtyOnHand in INItemStats

 
Votes Received: 3

AugSQL
Last Post by Tim Rodman 1 year ago
1 Posts
1 Users
3 Reactions
74 Views
RSS
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
Topic starter
March 7, 2024 1:08 pm
(@timrodman)
Famed Member
Joined: 10 years ago

I'm not sure why, but it seems that INSiteStatus.QtyOnHand is no longer reliable. So, wherever I was using INSiteStatus.QtyOnHand in SQL Views, I'm now using INItemStats.QtyOnHand instead.

 

I discovered this at a client that had recently upgraded from Acumatica 2022 R1 to Acumatica 2023 R2. The QtyOnHand numbers looked funny to them and it turned out that the problem was with any SQL Views that were using INSiteStatus.QtyOnHand.

 

The Primary Keys for INSiteStatus are CompanyID,InventoryID,SiteID,SubItemID

The Primary Keys for INItemStats are CompanyID,InventoryID,SiteID

I like using INItemStats better because SubItemID is related to Sub Items which are rarely used (for good reason) in Acumatica implementations.

 

If I do a Trace on a Generic Inquiry in Acumatica 2022 R1 that uses INSiteStatus, I get something like this:

SELECT COUNT( *)
FROM [INSiteStatus] [InnerQuery_INSiteStatus]
WHERE ( [InnerQuery_INSiteStatus].[CompanyID] = 2)

 

If I do a Trace on a Generic Inquiry in Acumatica 2023 R2 that uses INSiteStatus, I get something like this:

SELECT COUNT( *)
FROM [INSiteStatusByCostCenter] [InnerQuery_INSiteStatus_INSiteStatusByCostCenter]
WHERE ( [InnerQuery_INSiteStatus_INSiteStatusByCostCenter].[CompanyID] = 2) AND ( [InnerQuery_INSiteStatus_INSiteStatusByCostCenter].[CostCenterID] = 0)

 

So you can see that, in Acumatica 2023 R2, INSiteStatus is now pulling its data from INSiteStatusByCostCenter for some reason. I'm not sure why, but it is.

The Primary Keys for INSiteStatusByCostCenter are CompanyID,InventoryID,SiteID,SubItemID,CostCenterID

I prefer using INItemStats over over INSiteStatusByCostCenter because its Primary Keys are simpler.

James McKinnon, Dianne A and Terry Payne reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,521 Topics
  • 10.9 K Posts
  • 12 Online
  • 2,321 Members
Our newest member: Courtney Wilder
Latest Post: Can UDFs be populated using an Import Scenario?
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×