If the policy is that you must be employed on date bonuses are paid, then you probably will not be able to collect. Also, not meeting all quotas will probably be a problem once you leave.
I agree with Attorney Forman, this will hinge on the actual policy at the company.
This answer does not constitute legal advice and you should contact an attorney to confirm or research further any statements made in this answer. Any statements of fact or law I have made in this answer pertain solely to New York State and should not be relied upon in any way in any other jurisdiction. Additionally, we also encourage you to reach out to us via Twitter (https://twitter.com/#!/WhiteRoseMarks) or Facebook (http://www.facebook.com/WhiteRoseMarks) if you have follow up questions as we do not monitor questions after providing an initial answer.