Declarations > Audit > Portugal > ATCUD management > ATCUD management 

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

Beginning January 2022, the ATCUD and QR code are required on all accounting documents. As of this date, 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 typeLengthFormula
1Constant3PRF
2Constant1
3Site5
4Constant1
5Year2
6Constant1/

2. Click Generate to create the series number for a specific document type. You need to generate a series for each document type.

3. You need to manually provide the series to the Portuguese fiscal authorities website. The fiscal authority sends you the ATCUD code for the series.

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

Functions:

  • Sales invoices GESSIH
  • Sales deliveries GESSDH
  • Sales deliveries GESSDH2
  • Sales orders GESSOH
  • Sales quotes GESSQH
  • Payment/receipt entry GESPAY
  • Customer invoices GESBIC
  • Transport note GESTNH
  • Purchasing returns GESPNH
  • Customer returns GESSRH
  • Subcontract returns GESSTR
  • Intersite transfers GESSIS
  • Subcontractor transfers GESSST

Mass validation functions:

  • Invoice/credit memo validation FUNCFMINV
  • Delivery validation FUNCFMDLV
  • Transport note validation FUNCFMTNH
  • Order electronic signature FUNCFMSOH
  • Quote electronic signature FUNCFMSQH
  • Customer invoice posting BPCVAL
  • Payment proposals PAYPROPAL
  • Open item management MODECHE
  • Direct order invoice gen. FUNAUTINVO
  • Invoice validation FUNPIH
  • Purchasing Return validation FUNPNHTRT
  • Sales Return validation FUNCFMSRH
  • Proforma electronic signature FUNCFMPRO
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.

Prerequisites

SEEREFERTTO Refer to documentation Implementation

Screen management

Entry screen

Fields

The following fields are present on this tab :

Block number 1

 

 

  • SAF-T document type (field SAFTINVTYP)

 

  • Series (field SEQ)

 

  • Next value (field VAL1)

 

  • Document type (field TYP)

 

  • ATCUD (field ATCUD)

 

  • Active (field ENAFLG)

 

Block number 2

Register

  • Date series (field REFDAT)

 

Cancel

  • Accept (field STA)

 

Finalize

  • Reason (field COMMENT)

 

Consult

  • Start date (field STRDAT)

 

  • End date (field ENDDAT)

 

Status

  • Return code (field RETCOD)

 

  • Status (field TYPSERIE)

 

  • Message (field RETMES)

 

Close

 

Specific actions

Use this action to generate the series number that you need to submit to the Portuguese fiscal authorities.

All: All sequence numbers for all companies and years. This can take a long time to process.

Sequence number: Enter the final sequence number. If you enter another number, you receive a blocking error and the generation is not carried out.

Company: Enter the Portuguese company for the sequence number.

Year: Enter the year.

All results display in the Selection list. For example, if the company has several sites, a series is generated for each site for the company.

When you first generate a series and you do not have the ATCUD code, the results are listed under ATCUD missing. After you submit the those series to the fiscal authorities and enter the returned ATCUD code or codes, the series are listed under ATCUD management.

Actions menu

ATCUD actions / Register

ATCUD actions / Cancel

ATCUD actions / Finalize

ATCUD actions / Consult

Error messages

The only error messages are the generic ones.

Tables used

SEEREFERTTO Refer to documentation Implementation