At most one allowance on the gross price

Error FX-SCH-A-000274 Factur-X

Element variant 'ram:AppliedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator="false"]' may occur at maximum 1 times.

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

More than one ram:AppliedTradeAllowanceCharge element with ram:ChargeIndicator equal to false is present under ram:GrossPriceProductTradePrice. This represents multiple allowances on this gross price.

What the rule means

The rule limits the number of ram:AppliedTradeAllowanceCharge elements marked as an allowance on an invoice line’s gross price to one.

Please specify no more than one allowance on the gross price

Several allowances are entered on an invoice line’s gross price. You can limit the information here to one allowance.

What to do
  1. Locate ram:GrossPriceProductTradePrice for the affected invoice line.
  2. Count the ram:AppliedTradeAllowanceCharge elements whose ram:ChargeIndicator has the value false, and keep no more than one.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:GrossPriceProductTradePrice>
  <ram:AppliedTradeAllowanceCharge>
    <ram:ChargeIndicator>
      <udt:Indicator>false</udt:Indicator>
    </ram:ChargeIndicator>
  </ram:AppliedTradeAllowanceCharge>
  <ram:AppliedTradeAllowanceCharge>
    <ram:ChargeIndicator>
      <udt:Indicator>false</udt:Indicator>
    </ram:ChargeIndicator>
  </ram:AppliedTradeAllowanceCharge>
</ram:GrossPriceProductTradePrice>
✓ Correct
<ram:GrossPriceProductTradePrice>
  <ram:AppliedTradeAllowanceCharge>
    <ram:ChargeIndicator>
      <udt:Indicator>false</udt:Indicator>
    </ram:ChargeIndicator>
  </ram:AppliedTradeAllowanceCharge>
</ram:GrossPriceProductTradePrice>
Technical details

The check counts ram:AppliedTradeAllowanceCharge elements with ram:ChargeIndicator/udt:Indicator="false" under ram:GrossPriceProductTradePrice; the count must not exceed one.

Where the rule applies

The rule applies to ram:GrossPriceProductTradePrice of an invoice line. It concerns child ram:AppliedTradeAllowanceCharge elements whose ram:ChargeIndicator has the value false.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:GrossPriceProductTradePrice
Test expression (assert/@test)
count(ram:AppliedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator="false"])<=1