Skip to main content
Skip table of contents

TKFP_PT_10

Country: PT - Portugal

Fiscal Rules

In Portugal the fiscal law is very strict and the invoicing software must be certified by the Tax Authority before its usage.

POSible UTD has been certified by Portuguese Tax Authority with number 2994 on June 10th 2023.

There are no receipts. Every document printed is an invoice, invoice-receipt or a credit note.

The term “receipt” in Portugal just refers to the receipt for a payment.

Every invoice/credit note must be linked to a serie. Series must be declared on Tax Authority Web Portal and their “Validation Code” must be printed and included in the mandatory QR-Code that every invoice/CN must have.

The Series are:

  • Invoices

  • Credit Notes

  • Recovery Manual Invoices

  • Recovery Manual Credit Notes

  • Duplicate Manual Invoices

  • Duplicate Manual Credit Notes

Invoices and Credit Notes series can be setup in the Branch_Record table

Series for Recovery Manual Documents have the letter M as suffix

Series for Recovery Duplicate Documents have the letter D as suffix

It is also requested to export on demand an XML files containing all the documents for a period.
This XML files is named SAFT-PT.

In the utilities you can find the programs to:

  • Generate the SAFT-PT file

  • Setup Series template and Series previously declared in the Tax Authority Web Portal

  • Generate the previously inserted Recovered Documents

Prerequisites

A SQL Server Database named POSibleRegistry must be created. In the database are stored all the fiscal information needed:

  • Company Information

  • Branch Information

  • Series Information

  • All Documents produced (Invoices, Credit Notes, …)

Tech Notes

The script to create the Database and its objects is

POSibleRegistry.sql

The SAFT utilities are in the following zip file which contains:.

  • TkSAFTPT.exe - SAFT-PT extractor

  • TkSAFTPTManualDocs.exe - Recovery Documents Generator

  • TkSAFTPTSetup.exe - Setup Utility

SAFTPTUtilities.zip

Before activating you must create a configuration file named tkSAFTPT.ini with the following format

CODE
DataSource=<SQLServerName>
DbName=POSibleRegistry
DBUserName=<SQLServerUser>
DBUserPwd=<SQLServerPassword>

Change History

Version

Release Date

Notes

Download

2.04

26/04/2024

It is now possible to reprint an invoice or credit note

TKFP_PT_0204.zip

2.03

04/07/2023

Bypassed SQL Server datetime rounding restriction that sometimes caused invalid signature when checking SAFT

TKFP_PT_0203.zip

2.02

21/06/2023

Added support for Z-Report Text sent by client application

2.01

18/06/2023

Voided Receipt Datetime is now set as current datetime (Invoice DateTime is always the same as the original receipt)

2.00

17/06/2023

  • First Certified Release - 2994

  • Saved Series in Encrypted Check File for validation against database

1.11

05/06/2023

Decoded CustomerCountry to CustomerCountryDescription

1.10

04/06/2023

Credit Note now takes customer data from original invoice

1.09

15/05/2023

Bugfixing: added check that last receipt line is subtotal before removing it

1.08

02/05/2023

Added LastDate to Series Counters

1.07

06/03/2023

Added ATCUD support

1.06

10/10/2022

In case the Customer TAX Code is just the country it is now marked as 9999999990.

1.05

06/09/2022

Changed printed reference format for Manual and Duplicate Documents.

1.04

26/07/2022

Added support for Manual and Duplicate Documents.

1.03

10/07/2022

  • Changed Discounts Management.

  • Added Invoice Reference in case of Credit Notes

  • Changed Receipt Header with Compnay Data.

  • Changed Customer Country if unknown."

1.02

28/06/2022

QRCode doesn't include zero values

1.01

14/04/2022

QRCode is now printed at Version 9 level as minimum

1.00

22/01/2022

Initial Release

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.