It is therefore recommended to have previously defined a sequence number counter in the Sequence Numbers table (that can be accessed by tunnel from this field).
When the counter is used for the Portuguese legislation, the sequential number is applied to the document when it is subject to the electronic signature and SAFT-PT (Standard Audit File - Tax) payment processes. The parameter entitled PORDKS-Electronic signature Portugal(LOC chapter, POR group) must be set to: Yes, and the DKS-Electronic signature must be active.
The counter must have the following structure:
- The first component must be a constant component type. Its value must be equal to:
- the code of the sequential number code that may contain or not the PT abbreviation,
- the value of the original type of document. This value must match with the constant one, the “-“ character is optional.
Example: invoice type FCL has associated the PTFCL counter and the FCLconstant. - The second component must be the company code or the code site, if the counter is defined at the company level or at the site level.
- The third component should correspond to the year or the fiscal year, if the counter is set at the year or fiscal year level. It is strongly recommended that you do not use the month or the period within the framework of the electronic signature.
- The fourth component must be a constant type with the ' / ' value.
- The fifth component must be a sequential type one.
Between the first and the penultimate component, the complement can be used as an option. Although, the complement is mandatory for purchase auto-invoices. If the structure is not properly defined, a blocking error will occur once the document is validated or signed.