No charge at price level

Error PEPPOL-EN16931-R044 Peppol

Charge on price level is NOT allowed. Only value 'false' allowed.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

If an ram:ActualAmount is provided for ram:AppliedTradeAllowanceCharge, the value of ram:ChargeIndicator/udt:Indicator must not be true. The test allows only false at this location.

What the rule means

A charge in this form is not allowed at price level; the checked indicator may identify only an allowance. This prevents an amount at price level from being stated as a charge.

Please do not mark the price-level amount as a charge

An amount in ram:AppliedTradeAllowanceCharge at price level is marked as a charge. Only an allowance indicator is allowed at this location.

What to do
  1. Locate ram:AppliedTradeAllowanceCharge within ram:GrossPriceProductTradePrice.
  2. Check ram:ChargeIndicator/udt:Indicator for the provided amount.
  3. Make sure the indicator has the value false.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:GrossPriceProductTradePrice>
  <ram:AppliedTradeAllowanceCharge>
    <ram:ChargeIndicator>
      <udt:Indicator>true</udt:Indicator>
    </ram:ChargeIndicator>
    <ram:ActualAmount>5</ram:ActualAmount>
  </ram:AppliedTradeAllowanceCharge>
</ram:GrossPriceProductTradePrice>
✓ Correct
<ram:GrossPriceProductTradePrice>
  <ram:AppliedTradeAllowanceCharge>
    <ram:ChargeIndicator>
      <udt:Indicator>false</udt:Indicator>
    </ram:ChargeIndicator>
    <ram:ActualAmount>5</ram:ActualAmount>
  </ram:AppliedTradeAllowanceCharge>
</ram:GrossPriceProductTradePrice>
Technical details

The test passes when no ram:ActualAmount is present or when ram:ChargeIndicator/udt:Indicator has the value false.

Where the rule applies

The rule applies to ram:AppliedTradeAllowanceCharge within ram:GrossPriceProductTradePrice on an invoice line.

Context (rule/@context)
rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ ram:GrossPriceProductTradePrice
Test expression (assert/@test)
not(ram:AppliedTradeAllowanceCharge/ram:ActualAmount) or ram:AppliedTradeAllowanceCharge/ram:ChargeIndicator/udt:Indicator = 'false'