Set subscription end date when closing it
The subscrpition is closed when all the lines have have been totaly consumed. In this case the subscription has and empty end date.
I think it makes sense to use the max end date for the lines as end date a subscription end date, as it's the date when the subscription has been finished.