Field help (CDALEG) 

Optional field containing the legislation code (Miscellaneous table 909).
This value is checked during folder creation and validation and when adding data to copy a legislation.

  The Legislation field is used as a filter and it will be controlled on movement selection and entry (entry of invoices, payments, journals, etc.).
If the field is empty, the current record can be used irrespective of the legislation of the company impacted by the movement.