Generates BRG XML documents for annual statement submission to Bronnøysundregistrene.
Ported from wenche/brg_xml.py in the original Python Wenche project.
Two separate XML documents are required:
- Hovedskjema (dataFormatId=1266): company info, fiscal year, accounting principles
- Underskjema (dataFormatId=758): income statement and balance sheet figures
Namespace and orid values are from BRG's official documentation: https://brreg.github.io/docs/apidokumentasjon/regnskapsregisteret/maskinell-innrapportering/
Summary
Functions
Generates Hovedskjema XML (dataFormatId=1266) for BRG annual statement. Contains company info, accounting period, principles, and confirmation.
Generates Underskjema XML (dataFormatId=758) — income statement and balance sheet.
Functions
Generates Hovedskjema XML (dataFormatId=1266) for BRG annual statement. Contains company info, accounting period, principles, and confirmation.
Returns UTF-8 encoded XML bytes.
Generates Underskjema XML (dataFormatId=758) — income statement and balance sheet.
Returns UTF-8 encoded XML bytes.