All rules · pint-om · error
IBR-082-OM
When Invoice transaction type (BTOM-001) is Profit margin invoice (00000000010000000000) or Profit Margin Self-Invoice (00000000001000000000), then Total Amount Due (BTOM-020), should be provided and is mandatory and must be the sum of Total amount including VAT (BTOM-017).
The official rule
When Invoice transaction type (BTOM-001) is Profit margin invoice (00000000010000000000) or Profit Margin Self-Invoice (00000000001000000000), then Total Amount Due (BTOM-020), should be provided and is mandatory and must be the sum of Total amount including VAT (BTOM-017).
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
not($isProfitMargin or $isProfitMarginSelf) or ( cac:AdditionalDocumentReference[cbc:DocumentTypeCode='PM_TOTAL']/cbc:DocumentDescription castable as xs:decimal and u:slack( xs:decimal(cac:AdditionalDocumentReference[cbc:DocumentTypeCode='PM_TOTAL']/cbc:DocumentDescription), xs:decimal(sum($lines/cac:ItemPriceExtension/cbc:Amount/xs:decimal(.))), 0.01 ) )
Applied to nodes matching ubl:Invoice | cn:CreditNote
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-om-1.0.1 | pint-om | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-om-1.0.0 | pint-om | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
Check your own invoice
Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.
Open the validator