alphagov/trade-tariff-backend — pull request #32 by sauliusg (2012-11-23 08:36:51+00:00)
Title: Extend Heading#declarable conditions.

Extend Heading#declarable query to support grouping headings.
Example: https://www.gov.uk/trade-tariff/headings/6309 should be
declarable and show measure list.

Grouping Headings cannot be declarable they just wrap other headings.

To clarify: Grouping heading example: "III. WORN CLOTHING AND WORN TEXTILE ARTICLES; RAGS" (in https://www.gov.uk/trade-tariff/chapters/63). Technically it just has producline_suffix equal to 10.
6309 (same link) is a declarable heading - it has no commodities under it and therefore should show measure list, just like for a commodity. 6310 is a non declarable and non grouping heading, so it shows commodity list.