erp5_free_subscription: several improvements on interaction the updated Free Subscription
from Free Subscription Request: - In case of 'subscription', do not create a new Free Subscription if one already exists - In case of 'unsubscription' still create a Free Subscription if none exists and invalidate it at once - Allow having variation_category that will be passed to the Free Subscription - Handle definition of effective_date and expiration_date in Free Subscription better, Rule is: We prioritise effective_date (or expiration_date) if it exists Then getStopDate result (stop_date or acquiring from start_date) if it is not None Finally current date - Have assertions on variation_category and raise in case of unknown type
Showing
Please register or sign in to comment