Understanding Two-Dimensional Barcode (QR Code)

The Portuguese tax authority (AT) has published a requirement to include QR code in invoices and other tax-relevant documents. This measure aims to simplify the communication of invoices and better monitor taxpayer transactions for combating the informal economy, fraud, and tax evasion.

According to the Portuguese tax authority, transaction details required to create the QR code includes the following:

  • First-Party Tax Registration Number

  • Customer Tax Registration Number and Country

  • Document Type, Status, and Date

  • Document's Unique Identification

  • ATCUD

  • Tax Country Region

  • Taxable, Tax, and Total Amounts

  • Duty Stamp Amount

  • Hash Number

  • Software Certificate Number

    The following is an example of a string used in QR code creation:

            
             A:123456789*B:999999990*C:PT*D:FT*E:N*F:20191231*G:FTAB2019/0035*
             H:CSDF7T5H-0035*I1:PT*I2:12000.00*I3:15000.00*I4:900.00*I5:50000.00*
             I6:6500.00*I7:80000.00*I8:18400.00*J1:PT-AC*J2:10000.00*J3:25000.56*
             J4:1000.02*J5:75000.00*J6:6750.00*J7:10000 0.00*J8:18000.00*K1:PT-MA*
             K2:5000.00*K3:12500.00*K4:625.00*K5:25000.00*K6:3000.00*K7:40000.00*
             K8:8800.00*L:100.00*M:25.00*N:64000.02*O:513600.58*P:100.00*Q:kLp0*R:9999*
             S:TB;PT00000000000000000000000;513500.58
        

Example of QR Code [47,096mm] and [452 characters]

Example of QR Code [47,096mm] and [452 characters]

(Size=2, ECC=M, Margin= 2 (0,25cm), Module[version]=17 -> 85x85)

Note: The system stores the QR code string in the Legal Document Header - Tag File (F74L301T).

See Portugal QR Code Fields Mappings (Doc ID 2308107.1)

See also Printing the EnterpriseOne Embedded BI Publisher Report Output with QR Codes