uktrade / stream-read-xbrl

Python package to parse Companies House accounts data in a streaming way
https://stream-read-xbrl.docs.trade.gov.uk/
MIT License
19 stars 5 forks source link

Add logic to sum multiple total values in _parse_decimal with appropriate unit test #184

Closed tom-swart closed 3 months ago

tom-swart commented 3 months ago

To fix the issue detailed: https://github.com/uktrade/stream-read-xbrl/issues/183

Some reports had multiple values for a single cell. In this instance the values are now summed in the _parse_decimal function.

An appropriate unit test has been added to account for this.