Include no more than one VAT entry for 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

ram:IncludedTradeTax occurs more than once in ram:NetPriceProductTradePrice. The test allows no more than one such element.

What the rule means

The net price structure allows no more than one VAT entry at this point.

Please include no more than one VAT entry for the net price

ram:IncludedTradeTax is entered more than once for the net price of an invoice line. It may occur there no more than once.

What to do
  1. Find ram:NetPriceProductTradePrice in the affected invoice line.
  2. Check that ram:IncludedTradeTax occurs there no more than once.
  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 test counts the direct ram:IncludedTradeTax elements within ram:NetPriceProductTradePrice and limits the count to one.

Where the rule applies

The rule applies to 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