Member Contributions - workflow with invoice stumbles

Hi Jon,

thank you for your feedback. To avoid any misunderstandings: I haven’t made any changes or additions to the source code yet. Rather, I’m trying to figure out why the invoice isn’t containing the desired payment information from the third party, even though a look at the current source code in branch 20.0 suggests it should be.

I’m referring to the file htdocs/adherents/class/adherent.class.php.

Starting at line 1892, the payment terms of the linked third party are read.

The invoice is created at line 1911.

The invoice is then validated at line 1944

The creation of the PDF document of the invoice is called at line 2030.

All of the above actions are called within the function public function subscriptionComplementaryActions.

This function itself is called from within the file htdocs/adherents/subscription.php, see line 321.

The email notification is then called there on line 341. Attaching the generated PDF file of the invoice is described starting on line 397.

I just can’t find the point in the source code where the payment method isn’t being transferred correctly from the invoice to the PDF being generated. Is it possible that the invoice object needs to be updated / fetched before the PDF is generated?

Best regards and thanks, Marcel