alphagov / trade-tariff-backend

Enabling the population and distribution via API of UK Customs tariffs and duties
MIT License
7 stars 6 forks source link

[DO NOT MERGE] Update measure_presenter deduplication of VTS measure types #260

Closed matthewford closed 8 years ago

matthewford commented 8 years ago

There are measures:

2202901911 2202901919 2202901991 2202690199

Which have a VTS measure on 2202901900 the heading, but no additional measure on the commodity code.

The deduplication code was removing the measure because the codes do not match, however as there is only one VTS measure we should display it.

matthewford commented 8 years ago

Awaiting confirmation from HMRC

matthewford commented 8 years ago

This commit masks the wider issue, that there are measures in the database for these commodity codes, so closing as the query to fetch the measures needs to be fixed instead. (in declarable.rb)