At most one tax entry in the net price

Error FX-SCH-A-000336 Factur-X

Element 'ram:IncludedTradeTax' 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

Within ram:NetPriceProductTradePrice, ram:IncludedTradeTax occurs more than once.

What the rule means

The structure allows at most one included tax entry for this net price.

Please keep no more than one tax entry in the net price

ram:IncludedTradeTax occurs more than once in an invoice line’s net price. You can correct the structure by limiting it to no more than one element.

What to do
  1. Find ram:NetPriceProductTradePrice in the affected invoice line.
  2. Limit ram:IncludedTradeTax within it to no more than one element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:NetPriceProductTradePrice>
  <ram:IncludedTradeTax/>
  <ram:IncludedTradeTax/>
</ram:NetPriceProductTradePrice>
✓ Correct
<ram:NetPriceProductTradePrice>
  <ram:IncludedTradeTax/>
</ram:NetPriceProductTradePrice>
Technical details

The rule counts the ram:IncludedTradeTax elements within ram:NetPriceProductTradePrice and requires no more than one.

Where the rule applies

The rule applies to ram:IncludedTradeTax within ram:NetPriceProductTradePrice of an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:NetPriceProductTradePrice
Test expression (assert/@test)
count(ram:IncludedTradeTax)<=1