Project60 / org.project60.membership

CiviCRM extension to facilitate the "European" membership concept
GNU Affero General Public License v3.0
6 stars 14 forks source link

Extend a membership by completing a contribution #18

Closed jaapjansma closed 6 years ago

jaapjansma commented 6 years ago

I want to extend the membership period as soon as a pending contribution is set to completed.

The use case is: I have a membership organisation and I collect membership payment with Sepa Direct Debit. When I create the file the contributions are automaticly linked to the membership (see #10). The contributions are immediatly set to completed as we deal with failures manually. Now I want that the membership is extended with the status current as sson as the contribution is set to completed.

Solution: Provide a checkbox to enable/disable this functionality from the configuration and then whenever a contribution is updated and the status is set to completed we should extend the membership.

jaapjansma commented 6 years ago

I have implemented this below a screenshot of the setting screen screenshot from 2018-06-19 17-35-14

bjendres commented 6 years ago

@jaapjansma: Sounds/looks great. I'll have a look and merge when I'm back from BRX.

jaapjansma commented 6 years ago

@systopia I am going to add another commit to check whether the contribution is completed before extending the membership.

jaapjansma commented 6 years ago

I have updated the PR (https://github.com/Project60/org.project60.membership/pull/19). It now triggers when a contribution is completed. It will then check if the contribution is linked with a membership and if so (and the setting is enabled) then it will extend the membership end date. screenshot from 2018-06-20 17-16-38

bjendres commented 6 years ago

released with 0.5.1