I'm new to writing SuiteScripts and have been given a task to create a promo code when a certain Invoice has been paid in full. I was able to get this working with a user event script on the Invoice at Invoice creation originally, but it seems not to trigger when a Payment is applied that moves the Invoice from Open to Paid in Full. Would I need to have this script run on the Payment instead, and look for when the Payment is applied to these certain Invoices? Or is there a better way to go about this?