# FX-SCH-A-000118

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

> Sum of allowances on document level (BT-107) = Σ Document level allowance amount (BT-92).

- Level: error
- Rule sets: Factur-X BASIC rules 1.09
- Context: `//ram:SpecifiedTradeSettlementHeaderMonetarySummation`
- Test: `(not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='false'])and not (ram:AllowanceTotalAmount)) or ram:AllowanceTotalAmount = (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='false']/ram:ActualAmount)* 10 * 10 ) div 100)`

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