Skip to content
Direct Softworks

Why we took e-Factura out of our own panel

· 5-minute read · Romanian compliance · by Direct Softworks

Our panel could build the XML, hold the tokens and poll for the answer. It never filed a single invoice, because the filing was always the accountant's. So we deleted it.

For about a month, our own management panel had an e-Factura queue. Every invoice raised for a Romanian client went into it and was marked pending. The dashboard opened with a widget for rejected filings. The invoice list had a column that said PENDING, on every row, permanently.

Nothing in it ever transmitted anything. The credentials for the connection to ANAF were never set up, so the queue only ever filled. Meanwhile the invoices were being filed the whole time, through our accountant's own software, from the invoice we send them as an ordinary document.

On 14 August 2026 we took the whole thing out. This is the reasoning, and what a business system should do instead.

What came out, and what stayed

Out: the OAuth start and callback routes, the UBL builder, the status polling, the settings tab that would have held the credentials and tokens, the rejection widget, the ANAF column and filter on the invoice list, the rejection banner on the invoice page, and the stored path to the generated XML. The database columns behind all of it went in one migration.

Stayed: the lookup that fills a client in from their CUI against ANAF's public register. It reads an open endpoint and needs no credentials. Different service, different reason to exist.

A feature that describes something that does not happen is worse than a missing feature. PENDING on every invoice teaches everyone to stop reading the column. The day something genuinely is stuck, nobody looks, because the column has been crying wolf since the first week.

Why the filing belongs with the accountant

The duty and the button are different things. OUG 120/2021, art. 10 alin. (1) puts the obligation to transmit a B2B invoice through RO e-Factura on the issuer. The procedure for using the system allows access to SPV in your own name, through a legal representative, a designated representative or an authorised person (OMF 1365/2021, annex, art. 1 alin. (4)). Those last routes are what let an outside accountant transmit on a company's behalf. How your own arrangement is set up is a question for your accountant, not for a blog.

One invoice should have one sender. If both the panel and the accountant could transmit, sooner or later an invoice goes twice. An invoice communicated through the system cannot be returned in it (OMF 1365/2021, annex, art. 6 alin. (3)), and the Ministry of Finance's own guide to invoice type codes warns that even a trivial difference, a space or a full stop, can make a resubmission count as a second invoice with no technical way to cancel it. The fix for a duplicate is a reversal invoice. Two systems that can both press send will, eventually, both press send.

The accountant already holds the rest of the picture. Their software holds the ledger and produces the returns. Whether an invoice was accepted is one more fact about that ledger, and it is most useful in the place where the ledger lives, next to the person who answers for it.

The clock does not care who holds the button. The deadline is 5 working days from the date the invoice is issued (OUG 120/2021, art. 10 alin. (7)). Somebody has to watch it. It is better watched by the person whose whole job is deadlines than by a queue in a system nobody was reading.

What a business system should do instead

Produce invoices that would validate, whoever sends them. Every reason an invoice fails e-Factura validation is a data problem: the CUI, the RO prefix, the unit codes, the VAT treatment, totals that disagree by one ban. Those are the issuing system's job regardless of who transmits. Our panel refuses to issue an invoice while the company's own CUI fails its check digit, and fills clients in from the ANAF register rather than from somebody's typing.

Give the accountant a seat, not a shared folder. Our panel has an accountant role. It manages invoices, payments, expenses and reports, reads clients and projects, and has no access to contracts or company settings. Reports export to CSV with a byte order mark, so a Romanian company name survives being opened in Excel. That is a better handover than a monthly email with attachments, and it is the kind of role that only works when the permission model fits the real org chart.

Look at the other direction. Purchase invoices arrive through the same system, structured and already validated, and in most companies somebody still retypes them. The inbound half of e-Factura does not compete with the accountant's filing at all, and it is often the part worth building into your own system. It needs its own access and should be decided on its own merits.

When building submission in is the right call

None of this means e-Factura integration is a bad idea. It is work we offer, and for many companies it is exactly right: a company whose invoicing system is the ledger, with bookkeeping done in-house in that same system, should submit from it.

The question is never whether the integration is useful. The question is which system is the one that files, and the answer must be exactly one. Decide it before anybody writes code, write it into the scope, and make the other systems feed that one rather than race it.

The wider point

Our submission path answered a question nobody in the business was asking, because the filing was already being done. The test worth applying first is simpler: who actually does this today, and does our system make their job easier or just duplicate it?

A system should model what really happens in the business. Where the work is done elsewhere, by somebody competent, with their own tools, the useful thing is to hand them clean data and a seat, and to delete the part of your own system that only pretends to do their job.

More from the blog