The element "Third party payment amount" BT-DEX-002 shall be transmitted if the group "THIRD PARTY PAYMENT" (BG-DEX-09) is transmitted.
A submitted cac:PrepaidPayment is missing cbc:PaidAmount, or the element contains only whitespace. The third-party payment amount is therefore missing.
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.
The amount is missing from cbc:PaidAmount for a submitted third-party payment. Add a non-empty amount.
- Add the amount to
cbc:PaidAmountincac:PrepaidPayment. - Make sure the value is not empty or made up only of whitespace.
- Regenerate the invoice and check it again.
<cac:PrepaidPayment/>
<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.
The rule applies to cbc:PaidAmount within cac:PrepaidPayment at invoice level.
rule/@context)assert/@test)