BR-NL-11

The rule sets below word this rule differently; each wording is shown with its rule set.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Message

For suppliers in the Netherlands, the supplier MUST provide a means of payment (cac:PaymentMeans) if the payment is from customer to supplier

Context
/ubl:Invoice/cac:LegalMonetaryTotal[$s]
Test
xs:decimal(cbc:PayableAmount) <= 0.0 or (//cac:PaymentMeans)

Checked with Netherlands SI-UBL 2.0 Invoice (NLCIUS), Netherlands SI-UBL 2.0 Credit Note (NLCIUS)

Message

For suppliers in the Netherlands, the supplier MUST provide a means of payment (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans) if the payment is from customer to supplier

Context
ram:SpecifiedTradeSettlementHeaderMonetarySummation[$s]
Test
xs:decimal(./ram:DuePayableAmount) <= 0.0 or (/*/rsm:ExchangedDocument/ram:TypeCode[$si] = 381) or (../ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode)

Checked with Netherlands NLCIUS Invoice (CII)