What it means
The price base quantity (BT-149) states how many units the price covers, and BT-150 identifies its unit. In the Basic profiles of Factur-X and ZUGFeRD, this rule checks a non-empty unitCode attribute on ram:NetPriceProductTradePrice/ram:BasisQuantity against the permitted unit code list. It does not check the quantity value or whether the unit matches the billed quantity.
Why it matters
The unit code identifies what the price base quantity measures. It distinguishes a price per number of units from one per hour, weight or another measure.
How to fix it
Check the unit associated with the affected line's price base quantity. Choose the code that matches the actual measure, rather than entering a word such as hours. In XML, correct unitCode on ram:NetPriceProductTradePrice/ram:BasisQuantity. Preserve the base quantity when the price covers a batch or another stated quantity. 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 '@unitCode' 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-000533 still fails, and which other rules do.
Related rules
- FX-SCH-A-000534 Use a valid unit code for the billed quantity
- FX-SCH-A-000535 Line VAT details need exactly one tax type element
- FX-SCH-A-000536 Line VAT details need exactly one VAT category element
- FX-SCH-A-000537 Use a valid VAT category code on the line
- FX-SCH-A-000538 Use an allowed tax type code on the line
- FX-SCH-A-000539 Add the line period end date's format attribute