RT# 74452 Optimize referral billing event condition