I want to pass the current record of a report into a codeunit, but I whenever I try passing 'Rec' to a procedure in the codeunit I get this error: The name 'Rec' does not exist in the current context
My code right now (Report extension for Vendor Trial Balance report):
