How to find out Total Inventory Cost

Happy new year to all… [:)]

For an anlysis report i need to display total inventory purchase cost (ie sum (invent lowest/standared/highest order qty*item purchase price))

As you know we are taking item qty from ‘InventItemInventSetup’ (for invent lowest/standared/highest order qty) and Purchase price from ‘InventTableModule’.

SO how I can write the code for the same?