Poland has a national e-Invoice system (KSeF) platform that businesses can use. It provides an e-invoice structure and helps to standardise e-invoice transactions. As a result, Exact Globe+ also provides the facility where users can take advantage of this e-invoice platform.
The KSeF works based on receiving and sending back e-invoices. Exact Globe+ processes e-invoices and makes sure that incoming and outgoing e-invoices are compatible with the KSeF requirements.
Before you use the functionality, you must first set up the following master data:
You can find the National e-Invoice System (KSeF) section at System > General > Settings > Company data settings. This setting allows you to choose whether to use the live, test, or pre-production KSeF environment together with the settings for the KSeF reference and KSeF certificate.
To test and validate e-invoicing processes before going live, select the Pre-production option at the Environment field. Using this environment helps ensure your systems are prepared for the mandatory use of KSeF, minimising risks and ensuring compliance.
The E-Invoice: KSeF layout field is found at System > General > Settings > Documents settings. You can use this layout to retrieve the values to generate the XML file for the KSeF e-Invoice submission. If you want any fields to be included in the XML file submission you have to add the data to this layout. The default layout is “PLKSEF01”. If this layout is not available, you can import the “PLKSEF01.fkl” layout file from the /etc folder in the Exact Globe+ installation folder.
You can choose from two templates at the E-Invoice field. The template you choose is used for generating the KSeF XML format and determines the output format. There are two templates available:
The invoice template is used by default. If you want to import the credit note template, you can import the XML template by clicking the New button and selecting the XML template from the /XML folder in the Exact Globe+ installation.
You can edit the template by customising the fields. However, the fields must be added to the KSeF layout first before adding them to the e-Invoice XML template.
Additionally, you can add the QR code, KSeF reference, and verification link in the invoice layouts. To add them, you must first add the database fields under the Header block at System > General > Settings. The QR code, KSeF reference, and verification link will be displayed in the invoices when you process the incoming and outgoing invoices.
The KSeF invoice checkbox is added in the General section at System > Logistics > Invoice codes. This checkbox allows you to define which invoice code you want to use for the KSeF invoice submission. You can select the XML template that you want to use for the invoice code at the E-Invoice: XML Template field.
You must obtain a valid certificate issued by KSeF to connect to the KSeF portal. This certificate will be used to authenticate the organisation and generate an authentication key. The authentication key authorises the credentials for subsequent operations, such as submitting e-Invoices to KSeF or downloading invoices from the portal. You can go to the test portal https://web2te-ksef.mf.gov.pl/ to authenticate and generate the authentication key.
You can connect to the KSeF API by defining the fields in the National e-Invoice System (KSeF) section at System > General > Settings > Company data settings.
The certificate is generated in the KSeF portal, uploaded, and added to Exact Globe+. Each environment has one certificate and it is shared among all the users. If the Serial number, Issuer, and Expiry date fields are blank, there are no active certificates saved in the environment. The certificate obtained from the KSeF portal contains the “.crt” and “.key” files. You can update the digital certificate by selecting the option at Digital certificate.
If you select CRT & KEY in the Digital certificate field, the .crt file and .key file fields will be shown.
If you select PFX in the Digital certificate field, the .ptx file field will be shown.
Once the certificate is saved, the Serial number, Issuer, and Expiry date fields will be automatically filled in.
You can have three certificates saved in every Exact Globe+ application (one certificate for each environment). If you change the environment option without clicking Save, Exact Globe+ will automatically check for the active certificates that are saved in the environment.
Exact Globe+ handles sales invoices as outbound invoices to KSeF. These are listed on the Outgoing e-invoices screen. When you select the relevant sales invoices and click the Process button, the following will occur:
You can view invoices that have been processed and sent to KSeF at Invoice > Invoice > National e-Invoices System (KSeF) > Outgoing e-invoices.
Exact Globe+ handles inbound invoices received from KSeF as purchase entries. You can manage the purchase invoices at Finance > Entries > National e-Invoices System (KSeF) > Incoming e-invoices. You need the necessary rights to download purchase invoices.
Additionally, you can automatically create new creditors when you download the invoices by selecting the Create master data option in the Download options section.
When you click the Download button in the Incoming e-invoices screen, the following will occur:
The status of the invoices will be updated accordingly after the invoices have been allocated, approved, rejected or processed.
You can include the KSeF ID in all the sales and purchase entries through the XML import, SDK, and entity. However, these entries will only pass the initial format validation. To complete validation, the KSeF ID must match the corresponding HTML file from the KSeF portal, ensuring it is correct and linked to the right entry. Validating the HTML from the KSeF portal enhances financial data accuracy and compliance. This allows you to manage and validate KSeF IDs in the financial entries using HTML files downloaded from the KSeF portal without integrating with the KSeF system.
To validate KSeF HTML and financial entries, go to Finance > Entries > Validate KSeF HTML.
You can define the default directory path where all the KSeF invoice HTML files that are downloaded from the KSeF portal will be stored. These files will be used for matching.
Select the directory of the HTML files at Import directory in the National e-Invoice System (KSeF) section at System > General > Settings > Company data settings.
The following conditions are required before you validate the entries:
If you want to validate all the HTML files in the import file directory with the sales and purchase entries, do the following:
The system will do the following:
Matched HTML files are automatically moved to an archive folder in the same path as the Import directory. A copy of each matched file is also saved as a document attachment linked to the financial entry.
If you click Automatic in the Validate KSeF HTML screen, all the HTML files in the import directory will be processed and matched with the sales and purchase entries that contain KSeF references, regardless of whether the record is displayed in the overview.
You can validate the HTML file manually if you only want to validate one HTML file.
The following will be taken from the HTML and used in the matching process:
If the financial entries are created without KSeF reference, the debtor or creditor tax number is required.
If matching fails during automatic or manual validation, you can rectify the problem.
There might be multiple financial entries sharing the same Our ref. or Your ref., which prevents the system from matching the correct entry. If this error occurs, the error code “7” will be displayed in the Response message column in the manual HTML overview screen (click Manual at Finance > Entries > Validate KSeF HTML). You can resolve this by doing the following:
You can create financial entries with KSeF reference using XML, connectivity layer, or SDK. Errors may occur when the entries are created, which results in incorrect KSeF reference being assigned. To resolve this, do the following:
HTML files that are retrieved from the KSeF portal must be saved in the import file directory before the system can use them to validate the financial entries with the KSeF references. To prevent the directory from being overloaded, each time the HTML file is successfully matched with the financial entry, the following occurs: