ptibogxiv / adherentsplus

New adherent module for Dolibarr, comptible with my module Doliconnect for Wordpress/Dolibarr sync
https://www.ptibogxiv.net
GNU General Public License v3.0
13 stars 8 forks source link

Bug: In renew form subscription validity date are wrong registered for the subscription #25

Closed daraelmin closed 3 years ago

daraelmin commented 3 years ago

Bug: In renew form subscription validity date are wrong registered for the subscription

Environment

Expected and actual behavior

When the member is verx late (more than one year in my case) the renewal form set the subscription for the first unpaid period in llx_subscritpion but set the validity membership validity to the next and period in llx_adherent (end of present year in my case). So the subscription appears expired, but the member is up to date.

I'm expecting that the subscription date should be for the present period as the member won't ever pay for a period outdated.

Steps to reproduce the behavior

1) set a member late more than duration 2) use renew form and pay subscription 3) see result

subscription3