Fixes to referrals report for the switch to layout based transactions.