BT-42 should contain at least three digits.
The value in ram:CompleteNumber does not match the required telephone-number format. In particular, the telephone number does not contain at least three digits.
The telephone number is the seller’s contact detail identified by BT-42. Requiring a minimum number of digits ensures that a telephone number, rather than an unusably short value, is provided.
The seller contact’s telephone number does not contain at least three digits or does not match the expected format. You can update it in the seller’s contact details.
- Add or correct the seller contact’s telephone number.
- Check the value for
Contact.PhoneNoor the call toSetSellerContact(...). - Generate the invoice again and validate it once more.
<ram:TelephoneUniversalCommunication> <ram:CompleteNumber>12</ram:CompleteNumber> </ram:TelephoneUniversalCommunication>
<ram:TelephoneUniversalCommunication> <ram:CompleteNumber>+49 30 123456</ram:CompleteNumber> </ram:TelephoneUniversalCommunication>
Contact.PhoneNo(SellerTradeParty/ DefinedTradeContact: BT-42)FacturXInvoice.SetSellerContact(name, orgunit, emailAddress, phoneno, faxno)(phoneno: BT-42)
Technical details
The test normalizes whitespace in ram:CompleteNumber and checks the resulting value against $XR-TELEPHONE-REGEX.
The telephone number of the seller’s contact in ram:DefinedTradeContact.
rule/@context)assert/@test)