Romania - Taxare inversă art. 331 în punctul de vânzare
by Dorin Hongu https://www.terrabit.ro , Terrabit https://www.terrabit.ro$ 482.11
In-App PurchasesRomania - Taxare inversă art. 331 în punctul de vânzare
Ține poziția fiscală de la art. 331 în afara selecției cât timp cumpărătorul nu e înregistrat în scopuri de TVA și facturează obligatoriu bonurile cu taxare inversă
Ce include prețul
Odoo Apps adaugă în aceeași comandă modulele plătite de care are nevoie acesta, deci prețul din partea de sus a paginii e totalul pentru toate.
Keeps the article 331 fiscal position out of reach in the Point of Sale whenever the buyer is not registered for VAT purposes.
The cashier's fiscal position button lists everything configured on the register and lets the operator pick any of it, regardless of the customer on the order. That is the usual path by which an article 331 regime can land on a sale it is not due on — selecting a customer re-derives the position anyway. The register's default fiscal position and the presets are not filtered, so the article 331 position must not be set there.
This module removes those regimes from the list until the order carries a customer registered under article 316, and refuses to inherit such a position from a partner whose VAT status contradicts it.
It filters rather than blocks after the fact: asking the cashier to know who is VAT registered would move onto them a decision that belongs to the data.
An order carrying article 331 reverse charge must be invoiced: the fiscal receipt does not document a reverse charge supply. The payment screen ticks the invoice option and keeps it ticked, and the server invoices such orders even when they arrive without it. An order that reaches the server without a customer cannot be invoiced: it is recorded on the receipt and gets a note in its chatter, so the VAT can be regularised. Refunds of orders that were never invoiced stay on the receipt.
Why not guard the tax mapping instead
The obvious place for the guard would be the tax computation, as in the backend. In the
Point of Sale that conflicts with deltatech_pos_fix, which patches the same method
(prepareBaseLineForTaxesComputationExtraValues) to recompute the unit price when a
tax-included tax is mapped to a tax-excluded one — precisely the timber case. That patch
recomputes both tax_ids and price_unit from getTaxesAfterFiscalPosition(), so
whichever of the two patches runs last wins, and asset load order between two different
addon suites is not something to build correctness on.
Preventing the wrong fiscal position from reaching the order avoids the interaction entirely: both patches then see a fiscal position that is correct for the customer.
Where the operator can still go wrong
Nowhere that matters for the receipt. updatePricelistAndFiscalPosition re-derives the
position on every customer change, and the button no longer offers the article 331
regimes without a VAT-registered customer. Should an invoice still be issued from the POS
carrying the article 331 tax for a buyer that is not registered — an imported order, a
manual tax on a line — account.move._post in l10n_ro_reverse_charge_331 blocks it.
Session journal entries are not affected: they are of type entry, not sale documents,
so closing a session is never blocked.
Test coverage, honestly
The tests cover the data contract — that the fiscal position marker and the partner's VAT status reach the POS payload, and that the JavaScript criterion matches the Python one. The filtering itself is JavaScript and is not covered by an automated test; a POS tour would be needed for that. The contract is the part that would break silently on an upstream change, which is why it is the part under test.
Modulul nu are meniu propriu. Lucrează în ecranul de vânzare al Punctului de vânzare și presupune configurarea regimului art. 331 din modulul l10n_ro_reverse_charge_331 (poziția fiscală a plătitorilor și taxa domestică a bunului bifate Taxare inversă art. 331).
- Configurați casa: Punct de vânzare → Configurare → Setări, secțiunea Contabilitate: activați Taxe flexibile, adăugați la Permis poziția fiscală a plătitorilor și verificați jurnalul pentru Facturi. Poziția art. 331 pusă la Implicit sau pe o presetare se scoate singură de pe comanda fără client plătitor de TVA. Redeschideți sesiunea POS după instalare.
- Comandă fără client sau cu client neînregistrat în scopuri de TVA: butonul Taxă nu listează poziția art. 331. Un client neplătitor care are totuși pe fișă poziția plătitorilor nu o aduce pe comandă; pe linie rămâne taxa domestică, cu TVA la cota standard.
- Comandă cu client plătitor de TVA (bifa Plătitor TVA (scpTVA) / TVA aplicabil): poziția clientului se preia, linia cu bunul din lista art. 331 primește taxa
0% R331, iar totalul nu conține TVA. - Plata: pe ecranul Plată, butonul Factură este deja bifat. Încercarea de a-l debifa afișează „Comanda conține bunuri cu taxare inversă (art. 331): trebuie facturată, bonul fiscal nu este suficient.” La Validează se emite factura cu
0% R331și mențiunea legală art. 331. Comenzile fără taxare inversă rămân pe bon, cu factura opțională. - Verificarea în backend: Punct de vânzare → Comenzi → Comenzi, deschideți comanda: butonul Factură duce la factura cu
0% R331, fără TVA, emisă pe clientul plătitor. - Comenzi sincronizate fără bifa de factură (sesiune deschisă înainte de instalare, sincronizare offline): cu client, serverul le facturează singur; fără client, comanda se înregistrează pe bon și primește în chatter nota „Comanda are taxare inversă (art. 331), dar nu are client, deci nu a putut fi facturată…”. Contabilul regularizează TVA-ul pe aceste comenzi.
- Retur: returul unei vânzări facturate cu taxare inversă se face tot cu factură (factură de stornare cu
0% R331); returul unei vânzări nefacturate rămâne pe bon.
19.0.1.1.2 (2026-11-26)
- Comanda POS nouă, fără client, nu mai pornește cu poziția fiscală art. 331 când aceasta e poziția implicită a casei sau a presetării (La pachet / Livrare / Membri): poziția se scoate cât timp beneficiarul nu e înregistrat în scopuri de TVA (art. 331 alin. (1)), ca bonul să nu iasă la 0% pentru un cumpărător neidentificat. Comportamentul la schimbarea clientului rămâne neschimbat. Test unitar JS pentru regulă. Refs #1398.
19.0.1.1.1 (2026-11-15)
- Fișa consultantului (
readme/FISA_CONSULTANT.md, fără capturi);USAGE.mdrefăcut din fișă, în română, și descrierea corectată acolo unde nu corespundea codului. Fără modificări de cod funcțional.
19.0.1.1.0 (2026-10-19)
- Comenzile POS cu taxare inversă art. 331 se facturează obligatoriu: ecranul de plată bifează factura și nu mai permite debifarea, iar serverul forțează facturarea și pentru comenzile ajunse fără bifă (sesiuni deschise înainte de actualizare, sincronizare offline). Returul unei vânzări nefacturate rămâne pe bon.
- Un bon cu taxare inversă fără client nu poate fi facturat: comanda primește o notă în chatter, ca TVA-ul să poată fi regularizat.
19.0.1.0.3 (2026-10-16)
- Stadiul de dezvoltare trecut din Beta în Production/Stable: modulul este folosit de mult timp în producție la clienți.
19.0.1.0.2 (2026-09-29)
- Iconiță proprie a modulului, în locul celei generice (roțile dințate) pe care o avea.
19.0.1.0.1 (2026-09-28)
- Banner nou pentru Odoo Apps (
static/description/main_screenshot.png), generat dinstatic/description/banner.json.
✓ Inclus în abonamentul de suport Terrabit
Dacă Terrabit este partenerul vostru de implementare Odoo, abonamentul de suport include dreptul de folosință pentru acest modul și pentru toate celelalte module Terrabit, fără o achiziție separată. Modulele sunt actualizate la fiecare versiune nouă de Odoo și susținute de programatorii care le construiesc.
Ce acoperă prețul
- Doar licența modulului. Asistența, instalarea, configurarea, migrarea datelor și instruirea nu sunt incluse și se contractează separat — cu excepția clienților cu suport Terrabit, la care sunt incluse în abonament.
- Modulele nu stau pe raft. Le construim și le întreținem pentru propriile noastre implementări Odoo — rulează în producție la clienții noștri, de aceea țin pasul cu fiecare serie Odoo și cu structurile publicate de ANAF.
- Localizarea românească cere potrivire pe firmă. Planul de conturi, pozițiile fiscale, jurnalele și practica de raportare diferă de la o firmă la alta, deci o instalare funcțională e un exercițiu de configurare, nu doar o instalare de modul.
Aveți nevoie de ajutor la implementare?
Cele peste 800 de aplicații ale noastre de pe Odoo Apps Store sunt folosite în implementări Odoo din Europa, America, Asia și Africa — de companii pe care nu le-am cunoscut niciodată. Acesta e avantajul modulelor care pur și simplu funcționează.
Aveți întrebări despre modul? Scrieți-ne — vă răspund programatorii care îl dezvoltă.
Alte aplicații Terrabit
Alte module de la același editor, construite să lucreze împreună. Toate aplicațiile →
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Point of Sale (point_of_sale)
• Discuss (mail) • Inventory (stock) • Invoicing (account) |
| Community Apps Dependencies | Show |
| Lines of code | 731 |
| Technical Name |
l10n_ro_reverse_charge_331_pos |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module