# BR-36 Document level charge amount is required

Each Document level charge (BG-21) shall have a Document level charge amount (BT-99).

## Problem Description

> **ERROR**: EN 16931 core business rule (CEN)

> **Where BR-36 is checked**
>
> A validator checks an e-invoice in stages. First the file must be well-formed XML that matches the UBL or CII schema (XSD). Then the EN 16931 business rules run: BR core rules, BR-CO calculations, BR-CL code lists, BR-DEC decimals and VAT-category rules such as BR-S. Next come the national or network rules that BT-24 selects: BR-DE for XRechnung, PEPPOL-EN16931 for Peppol BIS Billing. The report lists every failed rule: one error means reject, warnings alone still mean accept. BR-36: EN 16931 core rule, reported in the stage “EN 16931 rules”.

## Solution

Add cbc:Amount to the document level cac:AllowanceCharge where cbc:ChargeIndicator is true (CII: ram:ActualAmount in ram:SpecifiedTradeAllowanceCharge with ram:ChargeIndicator true).

- [Check XML for free](/en/xrechnung-validator)

## Context and Significance

This is an EN 16931 core rule and the charge counterpart of BR-31. A document level charge (BG-21), such as freight, packaging or a handling fee, raises the invoice total without VAT (BT-109); without its amount the totals cannot be recalculated. The UBL schema already requires cbc:Amount, so BR-36 is mainly reported for CII invoices whose charge holds only a reason or a percentage.

## Valid Examples

- BT-99 = 9.90 on a document level charge (e.g. freight)

## Invalid Examples

- CII document level charge with a reason but no ram:ActualAmount (BT-99); in UBL a cac:AllowanceCharge without cbc:Amount is already an XML schema error

## Code Examples

### Valid XML
```
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:ActualAmount>9.90</ram:ActualAmount>
  <ram:Reason>Freight</ram:Reason>
</ram:SpecifiedTradeAllowanceCharge>
```

### Invalid XML
```
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:Reason>Freight</ram:Reason>
</ram:SpecifiedTradeAllowanceCharge>
```

## Affected Fields

- [BT-99 Document level charge amount](/en/resources/xrechnung/bt-99-document-level-charge-amount)

## Related Rules

- [BR-37](/en/resources/kosit-validator-errors/br-37-document-charge-vat-category-required)
- [BR-38](/en/resources/kosit-validator-errors/br-38-document-charge-reason-required)
- [BR-31](/en/resources/kosit-validator-errors/br-31-document-allowance-amount-required)

## Validation Tools

- [Official KoSIT Validator](https://github.com/itplr-kosit/validator): Run the official KoSIT validator with the XRechnung configuration to check EN 16931 and XRechnung rules.
- [Convert PDF to XRechnung](/en/pdf-to-xrechnung): Find validation errors during conversion and review each correction.

## Related Resources

- [Official Specification](https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [All validation errors](/en/resources/kosit-validator-errors): Overview of the EN 16931, XRechnung and Peppol validation rules explained here.
