Provide the third-party payment amount

Error BR-DEX-11 XRechnung

The element "Third party payment amount" BT-DEX-002 shall be transmitted if the group "THIRD PARTY PAYMENT" (BG-DEX-09) is transmitted.

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

A submitted cac:PrepaidPayment is missing cbc:PaidAmount, or the element contains only whitespace. The third-party payment amount is therefore missing.

What the rule means

The amount is required so that the submitted group BG-DEX-09 includes the value of the third-party payment. This amount is included when calculating the amount due.

Please provide the third-party payment amount

The amount is missing from cbc:PaidAmount for a submitted third-party payment. Add a non-empty amount.

What to do
  1. Add the amount to cbc:PaidAmount in cac:PrepaidPayment.
  2. Make sure the value is not empty or made up only of whitespace.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<cac:PrepaidPayment/>
✓ Correct
<cac:PrepaidPayment>
  <cbc:PaidAmount>25.00</cbc:PaidAmount>
</cac:PrepaidPayment>
Technical details

The test checks whether cbc:PaidAmount contains a non-empty value after leading and trailing whitespace is removed.

Where the rule applies

The rule applies to cbc:PaidAmount within cac:PrepaidPayment at invoice level.

Original message from the Schematron
Das Element "Third party payment amount" BT-DEX-002 muss übermittelt werden, wenn die Gruppe "THIRD PARTY PAYMENT" (BG-DEX-09) übermittelt wird.
Context (rule/@context)
/ubl:Invoice/cac:PrepaidPayment[$isExtension]
Test expression (assert/@test)
cbc:PaidAmount[boolean(normalize-space(xs:string(.)))]