unepwcmc/SAPI — pull request #173 by agnessa (2014-01-15 14:51:03+00:00)
Title: Fixes for eu inherited listing

Fixes cases of incorrectly calculated eu listing, where species where showing up as not listed even though they should have inherited a higher taxon's listing. In all those cases the species were listed in their own right under the previous eu_regulation, which is why the new listing for a hightr taxon would not be applied. Within CITES in such situations there would be an inclusion record to say that the species is now listed with the family; since there are no inclusions in EU, a different approach was needed. The calculation will now override a species level listing with higher taxon listing, if the higher taxon listing has a more recent event_id. This applies only to EU legislation.