alphagov/trade-tariff-frontend — pull request #24 by sauliusg (2012-10-22 11:13:06+00:00)
Title: Fix MeasureCondition duty expression formatting issues.

This enables Formatter to call methods along with fetching values from attributes hash. Fixes duty formatting issues on MeasureConditions, e.g.:

('view conditions' on All destinations - export refund 9100)
https://www.gov.uk/trade-tariff/commodities/1102903000?as_of=2012-10-02#export
vs
http://tariff.business.wales.gov.uk/tariff-bl/export/commoditycode.html?export=true&simulationDate=22/10/12&id=11029030&additionalCode1=&additionalCode2=&additionalCode3=&countryCode=

There will be no / or % sign in duty.

('view conditions' on Autonomous suspension under end use F073)
https://www.gov.uk/trade-tariff/commodities/0302511020#import
vs
http://tariff.business.wales.gov.uk/tariff-bl/export/commoditycode.html?export=false&from=heading&id=0302511020&simulationDate=22/10/12

Properly states '1161.00 EUR/Tonne'.

('view conditions' on Additional duty based on cif price)
https://www.gov.uk/trade-tariff/commodities/1702909500#import
vs
http://tariff.business.wales.gov.uk/tariff-bl/export/commoditycode.html?export=false&simulationDate=22/10/12&id=1702909500&additionalCode1=&additionalCode2=&additionalCode3=&countryCode=

No '|' marks, properly formatted expressions.

This fixes #37711475 in Pivotal.