ATCUD management

Use this function to generate and manage ATCUD codes for Portuguese legislation.

The ATCUD and QR code are required on all accounting documents. If there is no valid code in the ATCUD field, you cannot post or validate accounting documents.

Process overview

Steps to complete

  1. Create the Sequence number definition for the folder, company, or site by year using the ATDUC identification number. The Type should be Alphanumeric. You can only generate for the final series. If not, you receive an error. In the Components grid, you need to define the sequence number as shown below. This example is for a site. On line 6, the slash is required to comply with the Portuguese tax authority.

Component type Length Formula
1 Constant 3 PRF
2 Constant 1
3 Site 5
4 Constant 1
5 Year 2
6 Constant 1 /
  1. Select Generate to create the series number for a specific document type. You need to generate a series for each document type.
  2. You need to manually provide the series to the Portuguese fiscal authorities website. The fiscal authority sends you the ATCUD code for the series.
  3. Enter the ATCUD code you receive from the fiscal authorities into the ATCUD field.

ATCUD code in accounting documents

The ATCUD code in the ATCUD field is automatically added to documents when you perform a final action where the document, like an invoice, can no longer be modified. Depending on the function, this can include posting, validating, or selecting electronic signature. A log file details the insertion of the ATCUD code.

Suppliers

To communicate autoinvoices for suppliers to the fiscal authority using the webservice, you need to register the agreement with the "Portal das Finanças" to obtain the agreement number.

In the supplier record, you need to select the Autoinvoice agreement checkbox and enter the agreement number in the related field.

See the Supplier help for more information.

Reports

When you print a document or a report, the ATCUD and QR code are included.

SAF-T export

When you perform a SAF-T export, the ATCUD code is included in the <atcud> </atcud> tag with the same format used for documents. If there is no ATCUD code, a 0 is placed in the tag.

Importing invoices

When you import an invoice, you receive a blocking message if the ATCUD field is empty. You need to enter the ATCUD code to import an invoice for a Portuguese company.

The ATCUD code is limited to 10 alphanumeric characters. Only consonants and the number 2 through 9 are accepted. Special characters, like dashes or ampersands, cannot be used.

Prerequisites

Refer to the documentation on Implementation.

Screen management

Entry screen

Specific actions

Actions menu

Error messages

The only error messages are the generic ones.

Tables used

Refer to the documentation on Implementation.