At least three digits in the telephone number

Warning BR-DE-27 XRechnung

BT-42 should contain at least three digits.

Recommendation: The invoice remains valid but should be corrected so that it can be processed automatically.
What is wrong

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.

What the rule means

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.

Affected fields BT-42
Please provide a complete telephone number for the seller’s contact

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.

What to do
  1. Add or correct the seller contact’s telephone number.
  2. Check the value for Contact.PhoneNo or the call to SetSellerContact(...).
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>12</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>+49 30 123456</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
Check in FactoorSharp
  • 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.

Where the rule applies

The telephone number of the seller’s contact in ram:DefinedTradeContact.

Original message from the Schematron
In BT-42 sollen mindestens drei Ziffern enthalten sein.
Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTradeParty/ram:DefinedTradeContact
Test expression (assert/@test)
matches(normalize-space(ram:TelephoneUniversalCommunication/ram:CompleteNumber), $XR-TELEPHONE-REGEX)