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
17 stars 2 forks source link

feat: combine text of all child elements to handle split balance sheet dates #126

Closed michalc closed 1 year ago

michalc commented 1 year ago

It was found that balance_sheet_date can contain nested elements, and the date is in those elements. Interestingly, this was one of the existing test cases. However, in the real data, examples were found where the year was split across tags, so a test is added to handle that case.