---
title: "Taxes and rounding | Docs | ERP by R&D Copilot"
description: "How VAT is worked out on a document, in which order amounts are rounded and why a total can differ from a sum of line VAT."
canonical: "https://erp.rdcopilot.com/docs/concepts/taxes-and-rounding/"
language: en
updated: 2026-11-22
---

# Taxes and rounding

How VAT is worked out on a document, in which order amounts are rounded and why a total can differ from a sum of line VAT.

## VAT classes

An item has a VAT class, `standard` or `reduced`. The standard VAT rate in Romania is 21%. The reduced VAT rate in Romania is 11%. The 21% and 11% VAT rates apply from 1 August 2025. The API returns the rate with the class, as `vatRate` ("21" or "11"), so a client never has to know it.

## How a total is built

1.  Net of a line
    
    `quantity` times `unitPrice`, exact: whole units times a price in bani give whole bani.
    
2.  Base of a rate
    
    The sum of the nets of the lines that have that rate.
    
3.  VAT of a rate
    
    The base times the rate, divided by 100 and rounded to the nearest ban, halves up. It is rounded once per rate on the whole document, not line by line.
    
4.  Total
    
    The net of the document plus the VAT of every rate.
    

The sales order CV-1042 has two rates. Its `vatBreakdown` and totals are exactly what an invoice made from it carries:

| Rate | Base | VAT | Total of the rate |
| --- | --- | --- | --- |
| `11%` | `2418.60` | `266.05` | `2684.65` |
| `21%` | `399.81` | `83.96` | `483.77` |

Net 2818.41, VAT 350.01, total 3168.42 RON.

Rounding once per rate means the sum of the VAT of single lines can differ by a few bani from the VAT of the document. The document is the one that counts: invoices, bills and orders all carry the VAT of the document.

## Where it applies

-   Sales orders and invoices: the item’s class at the price of the line.
-   Purchase orders and supplier bills: the same classes, on the prices of the order or the bill. The total of a bill is worked out here; compare it with the total printed by the supplier.
-   Currency: amounts are in RON.
