This sequence number is used only if the parameter entitled PORDKS - Digital Signature Portugal (chapter LOC, group POR) is set to: Yes for the company of the return site. It is used, upon signing the return, to assign a new number to the document when it is subject to the electronic signature and SAFT-PT (Standard Audit File - Tax) payment processes.
The former number is no longer displayed but it is still recorded in a specific field ((TMPSRHNUM) in the returns table.
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:
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.