Skip to main content
Answer

Generic Inquiry: Grouping tab

  • June 3, 2025
  • 4 replies
  • 138 views

Forum|alt.badge.img

Hi all, 

I am trying to build a generic inquiry to show all the inventory items regardless if it has transaction history however I am getting multiple result by inventory ID but when I tried grouping it with inventoryID I am losing inventoryID that do not have transaction history. The ff are my main DAC I used:

PX.Objects.IN.INItemSite

PX.Objects.IN.INItemSiteHistDay

PX.Objects.IN.INSiteStatus

PX.Objects.AR.ARTran

 

I have also attached the extracted GI incase anyone of you have any input how to make the inventory ID unique in the result. Thank you. 

 

 

Best answer by DrewNisley

I tried looking through this and (I think) got what you are looking for. Simply change your ARTran inner join to a left join and it should bring up any inventory items that have not been sold. Then group by InventoryItem.InventoryID. I think it will accomplish what you are looking for.

I’m not sure how you’re wanting to incorporate the FromDate and ToDate if you want to bring up items with no sales, but you seemed to mark their logic inactive so I’m assuming you moved away from that.

Hope this helps!

4 replies

DrewNisley
Pro I
Forum|alt.badge.img+3
  • Pro I
  • Answer
  • June 4, 2025

I tried looking through this and (I think) got what you are looking for. Simply change your ARTran inner join to a left join and it should bring up any inventory items that have not been sold. Then group by InventoryItem.InventoryID. I think it will accomplish what you are looking for.

I’m not sure how you’re wanting to incorporate the FromDate and ToDate if you want to bring up items with no sales, but you seemed to mark their logic inactive so I’m assuming you moved away from that.

Hope this helps!


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • June 5, 2025

Thanks for the input ​@DrewNisley I have the ARTran in inner still. 

I made it so that when there is a date range, the result would be those Inventory IDs within the range hence if there is no input in the date range, all inventory IDs should show. 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • June 5, 2025

Requesting this topic to be marked as solve or close. Thank you.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • June 6, 2025

Hi ​@Crisel - You can close by marking “Best Answer” on the appropriate reply.