BR-FR-CO-09_BT-23-2
The rule sets below word this rule differently; each wording is shown with its rule set.
In English With the billing mode (BT-23) B2, S2 or M2 (invoice already paid), the amount due for payment (BT-115) must be 0.
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
[BR-FR-CO-09/BT-23] Si le cadre de facturation (BT-23) est B2, S2 ou M2, alors le net à payer (BT-115) doit être égal à 0. Net à payer : … .
ubl:Invoice | cn:CreditNote
not($billingContext = 'B2' or $billingContext = 'S2' or $billingContext = 'M2') or (xs:decimal($payableAmount) = 0)
Checked with France e-invoice (UBL), France e-credit note (UBL), France EXTENDED-CTC-FR (UBL)
BR-FR-CO-09/BT-23 : Si le cadre de facturation (BT-23) est B2, S2 ou M2, alors le net à payer (BT-115) doit être égal à 0. Net à payer : … .
rsm:CrossIndustryInvoice
not($isPaidMode) or (xs:decimal($dueAmount) = 0)
Checked with France e-invoice (CII), France Factur-X EN 16931, France EXTENDED-CTC-FR (CII), France Factur-X EXTENDED, France Factur-X BASIC WL