Tax information required for the logistics service charge

Error FX-SCH-A-000328 Factur-X

Element 'ram:AppliedTradeTax' must occur at least 1 times.

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

A ram:SpecifiedLogisticsServiceCharge contains no ram:AppliedTradeTax. This element must occur at least once for each logistics service charge.

What the rule means

ram:AppliedTradeTax associates the applied tax information with the logistics service charge. Without it, the tax treatment of the charge is not fully described.

Please provide the tax information for the logistics service charge

The tax information associated with a logistics service charge is missing. You can resolve this by including that information in the XML.

What to do
  1. Add at least one ram:AppliedTradeTax inside ram:SpecifiedLogisticsServiceCharge.
  2. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedLogisticsServiceCharge/>
✓ Correct
<ram:SpecifiedLogisticsServiceCharge>
  <ram:AppliedTradeTax/>
</ram:SpecifiedLogisticsServiceCharge>
Technical details

The Schematron test counts the direct ram:AppliedTradeTax elements in the current ram:SpecifiedLogisticsServiceCharge and requires at least one.

Where the rule applies

The rule applies to ram:SpecifiedLogisticsServiceCharge at document level within the settlement and checks its tax information.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedLogisticsServiceCharge
Test expression (assert/@test)
count(ram:AppliedTradeTax)>=1