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.
If ram:DuePayableAmount is greater than zero, both a due date in ram:DueDateDateTime and a payment terms description in ram:Description are missing.
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.
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.
- Check the value of
DuePayableAmount. - In
AddTradePaymentTerms(...), provide either a due date or a description of the payment terms. - Generate the invoice again and validate it once more.
<ram:DuePayableAmount>100.00</ram:DuePayableAmount> <ram:SpecifiedTradePaymentTerms/>
<ram:DuePayableAmount>100.00</ram:DuePayableAmount> <ram:SpecifiedTradePaymentTerms> <ram:DueDateDateTime> <udt:DateTimeString format="102">20241115</udt:DateTimeString> </ram:DueDateDateTime> </ram:SpecifiedTradePaymentTerms>
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.
The rule applies at the rsm:CrossIndustryInvoice level and concerns the amount due and payment terms.
rule/@context)assert/@test)- 2022-11-152022-11-15 · AddedTest to monitor implementation of BR-CO-25