Country: PT - Portugal
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:
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
A SQL Server Database named POSibleRegistry must be created. In the database are stored all the fiscal information needed:
All Documents produced (Invoices, Credit Notes, …)
The script to create the Database and its objects is
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
Before activating you must create a configuration file named tkSAFTPT.ini with the following format
DataSource=<SQLServerName> DbName=POSibleRegistry DBUserName=<SQLServerUser> DBUserPwd=<SQLServerPassword>
Bypassed SQL Server datetime rounding restriction that sometimes caused invalid signature when checking SAFT
Added support for Z-Report Text sent by client application
Voided Receipt Datetime is now set as current datetime (Invoice DateTime is always the same as the original receipt)
Decoded CustomerCountry to CustomerCountryDescription
Credit Note now takes customer data from original invoice
Bugfixing: added check that last receipt line is subtotal before removing it
Added LastDate to Series Counters
Added ATCUD support
In case the Customer TAX Code is just the country it is now marked as 9999999990.
Changed printed reference format for Manual and Duplicate Documents.
Added support for Manual and Duplicate Documents.
QRCode doesn't include zero values
QRCode is now printed at Version 9 level as minimum