BR-FR-CO-09_BT-23-1
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 paid amount (BT-113) must equal the invoice total with VAT (BT-112).
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 (facture déjà payée), alors le montant déjà payé (BT-113) doit être égal au montant total TTC (BT-112). Montant payé : … , Montant total : … .
ubl:Invoice | cn:CreditNote
not($billingContext = 'B2' or $billingContext = 'S2' or $billingContext = 'M2') or (xs:decimal($paidAmount) = xs:decimal($grandTotal))
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 (facture déjà payée), alors le montant déjà payé (BT-113) doit être égal au montant total TTC (BT-112). Montant payé : … , Montant total : … .
rsm:CrossIndustryInvoice
not($isPaidMode) or (xs:decimal($paidAmount) = xs:decimal($totalAmount))
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