# FX-SCH-A-000126

Source: https://xmlvalid.com/rules/FX-SCH-A-000126

> The allowed maximum number of decimals for the Invoice total VAT amount in accounting currency (BT-111) is 2.

- Level: error
- Rule sets: Factur-X BASIC rules 1.09
- Context: `//ram:SpecifiedTradeSettlementHeaderMonetarySummation`
- Test: `not(ram:TaxTotalAmount) or ram:TaxTotalAmount[(@currencyID =/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode and . = round(. * 100) div 100) or not (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode)]`

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