CII-SR-119
Only allowances on price a price should be present
warning: reported, still valid
Why it fails
- The gross price of a line has a charge (
ram:ChargeIndicatortrue) 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).
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
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))
Checked with EN 16931 Invoice (CII)