Allowance tax information

Error FX-SCH-A-000185 Factur-X

Element 'ram:CategoryTradeTax' must occur exactly 1 times.

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

The allowance is missing ram:CategoryTradeTax, or the element occurs more than once. Exactly one tax entry must be present.

What the rule means

ram:CategoryTradeTax associates the relevant tax information with the allowance. A single tax entry is required to make this association unambiguous.

Please provide the allowance tax information

The allowance’s tax information is missing or appears more than once. A single entry can be associated unambiguously.

What to do
  1. Add exactly one ram:CategoryTradeTax to the relevant ram:SpecifiedTradeAllowanceCharge.
  2. Remove duplicate ram:CategoryTradeTax elements if present.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax/>
</ram:SpecifiedTradeAllowanceCharge>
Technical details

The test counts ram:CategoryTradeTax in the context of an allowance where ram:ChargeIndicator is false and requires exactly one occurrence.

Where the rule applies

The rule applies to the tax information ram:CategoryTradeTax for a document-level allowance in ram:SpecifiedTradeAllowanceCharge. The allowance is identified by ram:ChargeIndicator having the value false.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator="false"]
Test expression (assert/@test)
count(ram:CategoryTradeTax)=1