UDFs to Inventory Detail Transaction Report

Hello to all, I am hoping someone has the expertise to assist me. I would like to add two UDFs to the Inventory Detail Transaction Report.

I would like to add the PO Receipt Header comment field to associate with the PO G reference, and the Sales Order Header comment field associated with the SO Invoice reference on the report. We put job information in these fields and would like to have it included for easy reference on the report.

I was successfully able to add the PO receipt header comment to the report several months ago, but the UDF was accidently deleted and I can't seem to replicate!  Any help or suggestions would be appreciated.