What it means
In the Basic profiles of Factur-X and ZUGFeRD, this rule checks a non-empty ram:TypeCode inside the discount's ram:CategoryTradeTax against the permitted tax type codes. It applies to discounts identified by ram:ChargeIndicator/udt:Indicator equal to false. An empty value passes this particular test; the rule does not check whether the element is present.
Why it matters
The tax type identifies which tax the discount's category refers to. It is separate from the VAT category and the VAT rate.
How to fix it
Check the tax type exported for the discount on the whole invoice. For VAT, ram:CategoryTradeTax/ram:TypeCode must contain VAT in capitals, not a percentage or a local tax abbreviation. Keep the VAT category and rate appropriate to the discount. If your software writes an invalid code, report this rule id to its supplier, then export and recheck.
Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice
Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta
The rule as published
Value of 'ram:TypeCode' is not allowed. Where this rule applies
| Rule set | Version |
|---|---|
| Factur-X 1.09 BASIC | 1.0.9-2 |
| ZUGFeRD 2.5 BASIC | 2.5.2 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-000519 still fails, and which other rules do.
Related rules
- FX-SCH-A-000520 Use a valid reason code for an invoice discount
- FX-SCH-A-000521 Use a valid VAT category code for an invoice charge
- FX-SCH-A-000522 Use an allowed tax type code for an invoice charge
- FX-SCH-A-000523 Use a valid reason code for an invoice charge
- FX-SCH-A-000524 Use an allowed due date format code
- FX-SCH-A-000525 Use a valid currency code on the invoice VAT total