glourencoffee / pycvm

Python library for processing data from CVM
MIT License
2 stars 0 forks source link

Use a hardcoded mapping of companies and layout types for layout validation #11

Closed glourencoffee closed 2 years ago

glourencoffee commented 2 years ago

Description

Due to the lack of information about a company's layout type in DFP/ITR files, layout validation is relying on the comparison of account codes and names. However, as shown in callmegiorgio/pycvm#5, this is messed up.

Define a hardcoded mapping of CVM codes and validators such that, instead of finding the account layout of a company, this library already knows which account layout a company has and uses it to validate accounts.

Also, change the validation process so that it compares only account codes, but not account names.