Payment due information for a positive amount due

Error BR-CO-25 EN 16931

In case the Amount due for payment (BT-115) is positive, either the Payment due date (BT-9) or the Payment terms (BT-20) shall be present.

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

If ram:DuePayableAmount is greater than zero, both a due date in ram:DueDateDateTime and a payment terms description in ram:Description are missing.

What the rule means

When a positive amount remains payable, the invoice must contain at least one indication of when payment is due: the due date or the payment terms.

Affected fields BT-115 BT-9 BT-20
Please add a due date or payment terms for the positive amount due

The invoice shows a positive amount due but contains neither a due date nor a description of the payment terms. You can add either one of these details.

What to do
  1. Check the value of DuePayableAmount.
  2. In AddTradePaymentTerms(...), provide either a due date or a description of the payment terms.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:DuePayableAmount>100.00</ram:DuePayableAmount>
<ram:SpecifiedTradePaymentTerms/>
✓ Correct
<ram:DuePayableAmount>100.00</ram:DuePayableAmount>
<ram:SpecifiedTradePaymentTerms>
  <ram:DueDateDateTime>
    <udt:DateTimeString format="102">20241115</udt:DateTimeString>
  </ram:DueDateDateTime>
</ram:SpecifiedTradePaymentTerms>
Check in FactoorSharp
  • FacturXInvoice.AddTradePaymentTerms(description, dueDate, paymentTermsType, dueDays, percentage, baseAmount, actualAmount, maturityDate) (BT-20)
  • FacturXInvoice.ClearTradePaymentTerms() (BT-20)
  • FacturXInvoice.DuePayableAmount (BT-115)
  • FacturXInvoice.GetTradePaymentTerms() (BT-20)
  • FacturXInvoice.PaymentTerms (BT-20)
Technical details

The XPath checks whether ram:DuePayableAmount is numerically greater than zero. If so, ram:DueDateDateTime or ram:Description must be present under ram:SpecifiedTradePaymentTerms; the condition does not apply when there is no positive amount due.

Where the rule applies

The rule applies at the rsm:CrossIndustryInvoice level and concerns the amount due and payment terms.

Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
( number(//ram:DuePayableAmount) > 0 and ( (//ram:SpecifiedTradePaymentTerms/ram:DueDateDateTime) or (//ram:SpecifiedTradePaymentTerms/ram:Description) ) ) or not(number(//ram:DuePayableAmount) > 0)
Changes in the KoSIT validation rules
  • 2022-11-152022-11-15 · AddedTest to monitor implementation of BR-CO-25