This considers that the end date is an expiration date if the current state is A for COMPTE. issue #5744