# CII-SR-122

Source: https://xmlvalid.com/rules/CII-SR-122

> CalculationPercent should not be present

- Level: warning
- Rule sets: EN 16931 rules (CII) 1.3.17, EN 16931 rules 1.3.16 (CII), EXTENDED-CTC-FR rules (CII) 1.4.0.04
- Context: `/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement`
- Test: `not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:CalculationPercent)`

## Why it fails

- The price discount on a line gives a percentage (`ram:CalculationPercent`); EN 16931 carries only the discount amount (BT-147).

## How to fix it

- Give the discount per unit as `ram:ActualAmount` and leave the percentage out, or move a percentage discount to the line allowances (BG-27), which can carry one (BT-138).

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