the query seems ok when sales UOM found in the inventtablemodule table for the same itemid. refer to the picture below.
however, when sales UOM not found in the inventtablemodule table for the itemid, my query will not gives the correct sales amount.
André Arnaud de Cal...
293,027
Super User 2025 Season 1
Martin Dráb
231,852
Most Valuable Professional
nmaenpaa
101,156
Moderator