How do we pay retention bonus

How to pay retention bonus to employee, and how is it managed in accounts?

A search on ‘sales commission’ will give you some direction to start. That is a roughly similar, to model and adapt to suit your use case.