Fiscalization
Bosnia and Herzegovina: fiscalization
How Renteon fiscalizes invoices in Bosnia and Herzegovina through a Tring fiscal printer or an OFS fiscal device set up per office, and how to retry or enter a fiscal number by hand.
Last updated
In Bosnia and Herzegovina, Renteon fiscalizes finance documents through a fiscal device that belongs to the office issuing the document: either a Tring fiscal printer or an OFS fiscal device. You choose the device per office.
Unlike most other countries, the device is not reached by the Renteon server but by the browser of the agent who issues the document. Renteon saves the document, prepares the fiscal receipt, the agent's browser sends it to the device, and the fiscal number the device returns is stored on the document. Two consequences follow:
- A document can be fiscalized only from a computer that can reach the office's device.
- There is no automatic retry in the background. A document that was not fiscalized stays flagged until someone fiscalizes it.
For the other countries, see Fiscalization and e-invoicing overview.
Choosing the device for an office
Open Administration → Locations → Offices, open the office, click Edit and scroll down the tab Basic. Bosnian accounts see two sections there:
- Tring Fiskalizacija for a Tring fiscal printer;
- OFS Fiskalizacija for an OFS fiscal device.
Switch on one of them with its Active checkbox, fill in its fields (described in the next two sections) and click Confirm. You need the role Edit offices.
An office normally runs one device. If both are active and the Tring section has a port, Renteon uses Tring. Documents issued in an office with neither device active are not fiscalized.
Some companies have their documents fiscalized through the external AK2 system instead of a device in the office. This is set up by Renteon support for the whole company. Renteon then sends each document to AK2 while saving it, and if AK2 does not accept it, the document is not saved. With AK2, the first payment of the document must be Cash, Credit card, Transactional account or Bank transfer; any other payment type stops the save.
Setting up a Tring fiscal printer
In the section Tring Fiskalizacija:
- Tick Active.
- In Port Tring Fiskalne Kase (Default: 8085), enter the port on which the Tring printer's service answers. If the printer uses the default, enter 8085. Renteon does not fill the port in for you: an office with an active Tring section and an empty port cannot fiscalize.
The printer's service must run on each computer that issues documents for this office, because Renteon reaches it on the agent's own computer (localhost) at that port. When a document is fiscalized, Renteon first wakes the printer up, then sends the receipt, and the printer prints the fiscal receipt and returns its fiscal number.
What Renteon sends to Tring:
- one receipt line named Stavka followed by the document number, quantity 1, with the document total in convertible marks and the tax label E;
- the payments, each converted to marks: Cash as cash (Gotovina), Credit card as card (Kartica), Transactional account and Bank transfer as transfer (Virman);
- for a company client with a VAT ID: the buyer's VAT ID, name, street, postal code and town. The address is the one selected on the document, or else the client's default address. A company client with a VAT ID but neither of these addresses cannot be fiscalized: you see "Tring: could not build the fiscalization XML for this document." Add a default address to the client and fiscalize again.
Renteon sends every document to Tring in the same way, as a fiscal receipt. It does not use Tring's refund receipt type for cancellations or credit notes.
Warning: Every payment type other than Credit card, Transactional account and Bank transfer is reported to the Tring printer as cash. A card payment taken through an online gateway is therefore printed as cash unless it is recorded as Credit card.
Setting up an OFS fiscal device
In the section OFS Fiskalizacija:
- Tick Active.
- API Key: the key of your OFS device or account. It is mandatory.
- API URL: the full address of your OFS service as seen from the agent's computer, including http:// or https://, for example http://localhost:3566. You can enter it with or without /api at the end; Renteon adds it when it is missing.
- Cloud API - test: tick it only when the address is OFS's cloud test service.
- Serial Number (Cloud API - test) and PAC Number (Cloud API - test): needed only with the cloud test service. A local device works without them.
Click OFS Status to check the connection with the values on the screen, even before you save them. A green message OK (sometimes with status codes) means the device answered; otherwise the message says what failed.
Before each receipt, Renteon checks that the device is reachable and, for a local device, that its security element is present. If it is missing, the message says "The OFS security element is not present."
Warning: Always fill in API URL. If it is empty, Renteon uses a built-in default address, which on Renteon's production servers is not your device. Remember that the address must be reachable from the browser of every agent who issues documents for this office.
Tax labels and data sent to OFS
The OFS device identifies VAT by a one-letter tax label, so each VAT rate you use needs the label in its Code. Open Administration → Code book → VAT rate, open the rate, click Edit, enter the letter your OFS device uses for that rate in Code, and click Confirm. You need the role VAT rate edit.
If a rate has no code, or a code longer than one character, fiscalization stops with a message such as "Vat rate code for rate 17 is missing".
For each document Renteon sends to OFS:
- every document line with its name in the domestic language, quantity, unit price and total in convertible marks, and the tax label. Each line also gets an item code derived from the service it was issued for;
- the payments, added up per payment kind: Cash as cash; Credit card, Credit card - preauthorisation, Stripe, Monri, Checkout, PayTabs, Adyen and Windcave as card; Checks as check; Voucher as voucher; STCPay as mobile money; Transactional account, Bank transfer, PayPal and Advance payment as wire transfer; everything else as other. Amounts in a foreign currency are converted with the document's exchange rate, and a rounding difference of a few cents is added to the largest payment;
- the buyer: the client's VAT ID, letters and digits only (a leading VP: is kept). It may contain only plain Latin characters and at most 20 characters;
- the cashier: the full name of the user who fiscalizes the document.
Which documents are fiscalized
A finance document needs fiscalization when the office it is issued in runs Tring or OFS, its type is Invoice, Bill, Bill - payout, Approval, Debit, Advance payment invoice or Offer, and at least one of its payments is Cash, Checks, Voucher, Credit card, Transactional account, Bank transfer, PayPal, Checkout, STCPay, Stripe, PayTabs, Monri or Adyen.
Offers are fiscalized only in Tring offices; an office running OFS never fiscalizes an offer.
OFS also has some limits. The following stop with an error message and are not fiscalized:
- documents of the type Accounting document, and approvals of such a document;
- final invoices that use an advance payment;
- cancellations and approvals whose original document has no OFS fiscal number yet. Fiscalize the original first. An original that was cancelled before it was fiscalized can still be fiscalized, and its cancellation can then refer to it.
Cancellation documents and approvals are sent to OFS as refunds of the original. Cancellations and approvals of an Advance payment invoice are sent as advance refunds.
You can exempt a client: on the client's record (Sales → Address book → Search, open the client, section Other) tick Do not fiscalize finance documents. Documents for that client are then not fiscalized, for example when you fiscalize one summary invoice for the client at the end of the month. In Sales → Bills → Search you can filter these documents with Do not fiscalize.
Fiscalizing after saving
When you issue a document with Sales → Bills → New invoice and save it, Renteon immediately sends it to the device of the document's office. The same happens for an Approval or a Debit you create from a document, because they open the same screen.
- If the device confirms, you see a success message and the fiscal number is stored on the document.
- If the device does not answer or rejects the document, you see an error message. The document itself is already saved, but it is not fiscalized, and you stay on it so that you can try again.
- If the office's Tring section is active but has no port, and OFS is not active, you see the warning "No fiscal device is configured on this office." The document stays waiting for fiscalization.
Documents that are created in other ways are saved without being sent to the device, for example a cancellation (Actions → Cancel), a full approval (Actions → Approval (Total)) or a group invoice. Fiscalize them by hand, as described in the next section.
A document that needs fiscalization but has none yet has a red flag next to its amount in Sales → Bills → Search (tooltip Fiscalization required). To find them all, open the section Fiscalization / e-Invoice of the search and set Fiscalization required to Yes. You can also search by Fiscal number.
Warning: Renteon's hourly fiscalization run, which retries failed documents in most other countries, skips Bosnia and Herzegovina. Check the list for red flags at the end of each day and fiscalize what is left.
Fiscalizing again or entering the number by hand
To fiscalize a saved document again, use one of these:
- Fiscalize at the bottom of the finance document screen;
- Fiscalize in the Actions menu of the document;
- Fiscalize in the row menu of the document in Sales → Bills → Search.
The command is available only while the document needs fiscalization and has no fiscal number. You need the role Invoice management. For a group invoice, use Fiscalize in the row menu of Sales → Bills → Search: that command reaches the office's device.
With OFS it is safe to repeat. Before sending, Renteon asks the device whether it already issued a receipt for this document (for example because an earlier answer was lost on the way) and takes that receipt instead of issuing a second one.
With Tring there is also Fiscalize (Manual entry), in the Actions menu and in the row menu. Use it when the printer printed the fiscal receipt but Renteon did not receive the answer. A dialog Fiscalization opens with the document number; enter the Fiscal number printed on the receipt and click Confirm. Renteon refuses a fiscal number that is already stored on another document.
What the printout shows
The printout of every finance document of a Bosnian account has a Fiscal number row in the header. It shows the number returned by the device, or stays empty while the document is not fiscalized. With Tring, the customer also gets the fiscal receipt printed by the Tring printer itself.
If you fill in IBFU/IBFM on the office (tab Basic), the header also shows an IBFU/IBFM row with that number. Documents issued for an additional company take this number from the office's Companies tab instead (the tab is shown when your account has more than one company), so fill it in there for each company.
The finance document screen does not show the fiscal number. Its fields Security code and Unique Id belong to other countries and stay empty for Bosnian documents. To check a fiscal number, look at the printout, or search for it with Fiscal number in Sales → Bills → Search.