cost of goods sold

any suggestions regarding Cost of Goods sold for sage Intelligence reporting... this is after the fact General Ledger only does not tie to the A/P module. I need to be able to show the beginning inventory balance, plus the purchases, and then deduct the ending inventory balance to display the cost of goods sold.  Can this be done?