PintLint

Rules / IBR-124-AE

IBR-124-AE error

VAT point date must not be there when invoice type code is 'credit note' or 'Credit…

VAT point date [IBT-007] must not be there when invoice type code (IBT-003) is 'credit note' or 'Credit note related to goods or services'.

Fails

<cbc:InvoiceTypeCode>381</cbc:InvoiceTypeCode>
<!-- the data this document type requires is missing or wrong -->

Fix

Type code 381 triggers this rule. Add what it asks for, or check the type code is right.

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
not((cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "381" or (cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "81") or not(cbc:TaxPointDate)

Official text: VAT point date [IBT-007] MUST not be there when invoice type code (IBT-003) is 'credit note' or 'Credit note related to goods or services'.

Official · PINT AE (UAE) rules. Severity: error. Runs on UBL XML.

Check an invoice