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.
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.