We need to run some custom code whenever an Invoice Report is run. For example, once the user has clicked the "Run Report" button and selected a custom Invoice Report, we would like to change the statecode and statuscode fields on the related Invoice.
Is there any way to trigger a plugin off the printing of a report? If not, can JavaScript be triggered when the user selects a report from the Run Report dropdown?