# CII-SR-119

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

> Only allowances on price a price should 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: `(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator=false()] and ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ActualAmount) or (not (ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ChargeIndicator) and not (ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ActualAmount))`

## Why it fails

- The gross price of a line has a charge (`ram:ChargeIndicator` true) or an allowance without an amount; EN 16931 only knows a price discount (BT-147).

## How to fix it

- Keep only allowances with `ram:ActualAmount` on the gross price. A charge on a line goes in `ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge` as a line charge (BG-28).

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