Best practice for logging passive income?

Best practice for logging passive income?

I did some work for a client and, as part of our agreement, I received a percentage of the profit that it later produced. What's the best way for me to log this income?