Electronic Invoicing (Serbia) - NPSBeograd/NPS-Support GitHub Wiki

🔶 Overview

NPS Electronic Invoicing Microsoft Dynamics 365 Business Central

In accordance with electronic invoicing the direct communication with the System of Electronic Invoices (Serbian: SEF) is enabled through invoice exchanges between companies (both public and private).

Sending of sales invoices and receiving of purchase invoices is both done through official Web services that are provided by the Tax Administration. The prerequisite for application of this method of communication is that the company must be registered on the SEF portal based on a certificate held by an authorized person who has the ability to apply for a tax return.

After registering on the SEF portal, it is necessary to setup system settings (Microsoft Dynamics 365 Business Central) according to the steps further explained in this manual. Also, this instruction includes the steps to be followed in operational work with documents.

Types of documents to be either received or sent are:

• Invoice or prepayment invoices

• Finance charge memo

• Credit memo or correction of prepayment invoices

• Final invoice (after prepayment invoice)

Feature Description Release
Settings Settings for further use of E-invoices 20.5
Work with documents Process of creating sales invoices, prepayment invoices, purchase invoice, credit memo 20.5
Other functions Batch invoices sending and automatic get sales invoices status 21.0

🔶 Settings

1. Obtaining of API key

After registering on the E-fakture portal you need to select the "API management" section from the “Settings” menu.

alt

Once the new page opens you need to toggle the “Active” button and copy the autogenerated password from the “Authentication key” field into the “API Key” field in the E-Fakture service settings within 365 Business Centre.

alt

After the settings have been adjusted, the user does not have to log into the E-Fakture portal in order to send an invoice since they will be able to regularly create and post documents through Business Central as usual. Logging into the E-Fakture portal is only necessary if there arises a need for more detailed document checks or changes to the settings.

2. Service Connections

After the API key is obtained it is necessary to enter said API key into further settings in Business Central. By entering the Service Connections search you are to select EIN e-Invoice setup.

alt

After selecting it a new page for setting URL addresses opens and the entry is made by clicking the Set URLs to Default, and subsequently by confirming the Enabled function via the toggle button.

alt

In the same setting, in the Treasury section, fill in the data essential for integration with the treasury. In the Treasury section, enables us to send created invoices to the central register of invoices. The fields should be filled in as shown in the picture. The Fields are filled in by clicking on Set URLs to Default.

  • KJS Usergroup : guests
  • KJS Username: guests
  • KJS Password: guests
  • KJS Types for Sending in CIR: 0,1,2,4,5,6,9,10,11 – KJS is entered, which will be sent to the Central Register of Invoices. Every customer who has a defined KJS number on their card will be sent to the Central Register of Invoices.

alt

3. Electronic Documents Formats To access the formats, you need to set the following: Type the keyword Company Information in the search bar and set the user experience to premium. The following image represents the tab page that will open after the search.

alt

For the purposes of automatic sending of invoices during posting, it is necessary to set up profiles for sending on each individual customer's card, explained below. In order to create a profile for sending documents, you first must create an electronic document format. In the quick search find Electronic Documents Formats and create a sales invoice and sales approval format as follows.

alt

Enter the format code and select the sales invoice/sales approval and the corresponding object ID, as shown on picture below (For code unit IDs - NPSEIN Generate File, and for delivery code unit IDs - NPSEIN Integration)

Note: It is mandatory that both invoice and approval have the same code in order to be linked with a sending profile.

The next step is creation of Document Sending Profiles. In the search bar type Document Sending Profiles and create a new profile by clicking the “New” button.

alt

Assign a code to it and choose Document Exchange Service and a format that was previously created in Electronic Document formats, as shown on picture below. By default, the check mark signals that the sending profile will be incorporated for all customers, unless a different sending profile is set in the customer card itself.

alt

Afterwards, in the general section of the customer card, in the sending documents profile field select the created E-Fakture profile.

alt

All customers’ cards whose profile is set up in this way can send e-invoices during posting by selecting the Post and Send option. If this setting is not set, sending can be done in one of the following two ways:

  1. From the list of posted invoices (in the quick search, type posted sales invoices to get a list) it is necessary to mark the invoice on the list, as shown in picture.

alt

  1. From the very posted document itself (the posted document is opened by clicking the invoice number from the posted invoices list), as seen in the picture below

alt

In both of these cases, sending is always initiated from the Actions -> Electronic Invoicing -> Send Sales Invoice

4. VAT Posting Setup

On the VAT posting setup, each combination of VAT posting that is used for invoicing should be marked with a corresponding letter in the "Tax category" field. In the search, type VAT Posting Setup, select the VAT Business Post. Group and add the tax category on the VAT posting setup tab itself, as in the picture.

alt

alt

According to the current Tax Administration instructions, VAT categorize are defined in the following manner

alt

Based on the previously listed categories, the settings should be set so that 20% VAT can indicate the letter "S", exemption from VAT can be indicated by the letter combination "AE", etc.

5. VAT Product Posting Groups

In the case of a sales invoice with a line of 0% VAT, it is mandatory that the code of the article of the law according to which the right to calculate VAT of 0% is acquired is entered in the description of the product posting group for VAT on the group used when posting invoices with 0% VAT. The code must be entered in the exact format mandated by the Ministry of Finance.

In the search type VAT Product Posting Groups, find your code for exempt VAT calculation on the list and change the description as shown in the picture.

alt

After this setting, you move on to the setting of posting for VAT, where the corresponding tax category is entered (from the previous chapter). It is necessary to set a category for the VAT Posting Business group (in the example it is KDOM) and the VAT Prod. Posting Group (in the example it is OSLPDV). Shown below.

alt

6. Standardize codes for units of measure

In order to standardize codes for the units of measure, possible units of measure that will be used when creating invoices are defined on the E-Faktura portal. In order for the exchange of documents on the NAV/BC-SEF relationship to be possible, it is necessary to standardize the units of measure in the "Units of measure" table. Possible units of measure are:

  • kom – Piece
  • kg – Kilogram
  • km – Kilometres
  • g – Gram
  • m – Meter
  • l – Liter
  • t – Ton
  • m2 – Square meter
  • m3 – Cubic meter
  • min – Minute
  • h – Hour
  • d – day
  • M – Month
  • God – Year Adjustment in NAV/BC is done by adding one of the mentioned units of measure to the column "International standard code".

alt

7. EU country/region code

As the working principle of E-Fakture is based on the exchange of data that is in accordance with the European exchange system, the country codes must also be defined according to precisely mandated standards. Until now, the encryption standards of the countries were not taken into account, so the existing codes cannot be changed. In the search, type the country/region because a new setting is required in the fields:

• EU country/region code - Since the exchange of invoices is done only with domestic customers, this field must be filled in only for the country of Serbia, so the abbreviation in this field should be "RS".

• VAT scheme - Also, for Serbia, fill in "9948".

alt

If the exchange of invoices is extended to other countries, the same setting must be made for each new country.

8. Customer Card – Public companies

If we work with clients who are public companies (they have a JBKJS number - a unique number of users’ of public funds), it is necessary to fill in their cards with JBKJS number as well as the PIB number. JBKJS is transferred over from the Treasury Administration portal into the JBKJS field in the customer's card.

All customers who have a KJS Type defined on their card will be sent to the Central Register of Invoices.

alt

🔶 Work with documents

🔹 Purchase

1. Get Purchase Invoice

In order to get electronic invoices from the portal, we enter Purchase e-Invoices in the search box, then select Electronic Invoicing -> Get purchase invoice from the Actions tab.

alt

After confirming we want to get invoices from the portal, a new window pops up offering us the option to choose which invoice we want to download.

alt

If we want to download an individual invoice, then we enter the ID which is found on the portal in the designated field. The ID for the individual purchase invoice can be copied from the URL, as seen in the picture.

image.png

Once the download is done, you get a confirmation that the download was successful, as shown in the picture

alt

When we open the downloaded invoice (2x click on the invoice) in order to accept it we start the process of posting the purchase invoice. In addition to accepting, we also have the option of rejecting incoming invoices on the same page.

alt

After accepting it, we will receive a confirmation message, as shown in the picture

alt

2. Create incoming document

After the invoices have been downloaded from the portal, we create the incoming document from the same page where we confirmed the accepting of the invoice by clicking on the function Related -> Incoming document -> View document, as shown in the picture.

alt

alt

Once the window opens, we get a document for posting by clicking the record.

alt

After entering the lines, we can post the document.

🔹 Sales

1. Invoices

The process of creating sales invoices is done in a standardized procedure by entering sales invoices in the search bar and creating your new sales invoice for the respective customer. For the purposes of sending the data specification together with the sales invoice/order document, it is necessary to define the tax liability method field. The tax liability method field is located in the output document in the electronic invoicing section. The field gives us following options to choose from: trade date, issue date, payment date.

The standard value is set to "trade date" which means that the invoice will be submitted to the portal in the tax period with the date the document is posted in the system.

alt

After filling in both the header and invoice lines, by clicking on “Post and Send” the invoice is posted and sent to the E-Fakture portal.

alt

If the sending of invoice is successful, after posting, l the system will provide information about the document being successfully sent.

alt

If the posted sales invoice we intended to send over to the E-Fakture portal is rejected during sending the system will report an error, depending on what the error is.

alt

In the same (posted) document, located in the electronic invoicing section, there are fields showing the sending status and the code under which the invoice was registered on the E-Fakture portal.

alt

The E-Invoice error text field - shows the description of the error if the invoice was not successfully sent
The E-Invoice status - Shows the eInvoice statuses on the E-Fakture portal (Sent, Cancelled, Rejected, Approved...)

2. Get invoice status

Once the invoice is sent to E-Fakture, the first status of the invoice reads "Sending". When the customer either approves or rejects the invoice, this document gets a new status on the portal, but this does not mean that the status of the invoice in Business Central will change at the same time. The status of the invoice can be updated by clicking the "Get invoice status" command in the posted document. On the action tab, select Electronic Invoicing, followed by Get Invoice Status.

alt

If we want to get the status of several issued invoices, we can do so from the list of posted invoices by selecting several invoices from the list, also on the action card, as shown below.

alt

After getting the status, the system will confirm that the processing is completed as shown in the picture.

alt

If our customer is a public company, both PIB and JBKJS numbers are sent from the customer’s card, on the basis of which SEF will then make the transfer to SUF (Serbian: SUF - Invoice management system).

3. Credit memo

This type of document is created in the same way as a sales invoice. The only difference is that the document must be marked as a “Debit Document Type” by toggling the "Debit document type" button in the sales invoice’s electronic invoicing section as shown in the picture.

We always select the invoice related to the charge memo, the invoice whose value should be increased by the amount of the Charge memo. When we marked that it is Debit Document Type, we must select Source Invoice No. or to enter a date (period, month, day) in the Date Period field.

alt

The further steps of filling out and posting the document are identical to regular invoices.

4. Prepayment invoices

When it comes to working with the prepayment invoices given to the customers, it is necessary to set the tax category in the VAT Posting Setup field, as shown in the picture. Enter the VAT posting setup in the search section and when you find a line with the customer VAT Bus Posting Group (in the example, KDOM) as well as the VAT Product Posting Group (in the example A10 and A20), in the Tax Category, it is necessary to enter category S.

alt

The process of creating a prepayment invoice remains unchanged. The header of the document as well as the lines with the amount of VAT are filled out. The E-Fakture portal will recognize that a payment invoice is being sent as the document is marked as “prepayment” in the part where the payment is linked to the prepayment invoice. When creating a prepayment invoice and before sending the invoice itself, it is necessary to set the Tax Liability Method in the electronic invoicing section. When it comes to the prepayment invoice, the payment date is selected, as shown in the picture.

alt

5. Credit memo

The creation of a credit memo also remains unchanged. If the memo is created by copying the sales invoice, in the credit memo header, the field called "Applies-to Doc. No” is filled out with the invoice number to be reversed/accepted. The same number that is filled in Applies-to Doc. No will be filled in independently in the Electronic Invoicing section in the Source Invoice No field.

Items

Date Period - enter the date or previous (months). Date Period will be filled in if we do not have filled in Source Invoice No. When we have the Invoice Source field filled in, we don't need to fill in the Date Period field.

After filling in the header and rows, the memo can be posted further and then sent to the E-Fakture portal.

In order to successfully create a credit memo, it is necessary that the account we want to reverse is in the accepted status accepted by our customer. When the account has the status approved, then it is possible to make a correction, i.e. reduction or desk account.

🔶 Other functions

1.Send Sales Invoices

Sending a number of invoices simultaneously is possible from the list of Posted sales invoices. It is necessary to select the desired invoices and select the Send sales invoices option located on the Actions tab in the Electronic invoicing section.

alt

2. Get Purchase Invoice on Date

Downloading a number of invoices simultaneously is possible from the E-invoices Purchase list. Select the option Get Purchase Invoices on Date, which is located on the Actions tab in the E-invoices section. Invoices are always downloaded for the past day, or you can choose from - to (from some day to yesterday). The date filter always excludes today when it is Get Purchase Invoices.

alt

alt alt

3. Job Queue Entries

For automatic download, you need to setup up a Create Job Queue entries that downloads the statuses from the portal at a certain time. In the search, type Service Connections -> E-invoice setup -> Actions -> Job queue -> Create Job Queue entries, as shown in the picture.

alt alt alt

In the Job Queue Entries card, for the “Start Time” field fill in when the action will be launched for the first time during the day and the “End Time” after which the action will not be launched. In the “No. Of Minutes between runs” field, enter the idle time between the two action starts. After the “Job Queue” has been created, click the “Get Status to Ready” option which finishes the setup, as shown in the picture.

alt