# XV-FI-06

Source: https://xmlvalid.com/rules/XV-FI-06

> VatBaseAmount of the … % rate (…) must be the sum of RowVatExcludedAmount of the rows at that rate (…) (Finvoice 3.0 guidelines, 14).

- Level: error
- Rule sets: Finvoice 3.0 calculation and payment rules Implementation guidelines 2.6 (16 September 2025)
- Context: `/Finvoice/InvoiceDetails[matches(InvoiceTypeCode, '^(INV|SEI|REC|RES)') or InvoiceTypeCode = 'TES01']/VatSpecificationDetails[VatRatePercent]`
- Test: `not($mine) or not(VatBaseAmount) or not($rows) or $invoiceLevel or $rate = 0 or $rows[not(RowVatExcludedAmount)] or fi:same(fi:dec(VatBaseAmount), fi:dec($rows/RowVatExcludedAmount))`

Validate a document against these rules: https://xmlvalid.com/validate
