Greetings and salutations,
Let me start by saying I inherited a very old installation of ofbiz/opentaps that cannot be updated because of other infrastructure limitations, so my problem might relate to something that was fixed a decade or more ago. I am attempting to automate the emailing of statements to all customers with an outstanding balance. My intention is to write a service and schedule it to run on the first of each month. Currently, if I navigate to the Collections Summary in Receivables and select a customer from the list, I can then click a button to generate a PDF statement. I can then attach this statement to an email and send it. However, when I write a service to generate this PDF as an attachment to an email, I consistently run into an issue where parseReportOptions.bsh cannot find a "request" or a "session". It is my understanding that these are supposed to always be in context, however, I consistently get 'void' (not to be confused with null) for these two items. I am at a loss as to why, and what I can do to fix it. Can anyone make any suggestions?
