Rules
VRBL-INV-TR-1p2-71
Basic Info
| Rule | If the Invoice Subtype Code is 'VRBL:TR:YOLCUBERABERFATURA', the %{cac:BuyerCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = concat($VRBL-TR-Prefix, 'PARTYTYPE')]} must have the value 'TAXFREE'. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-tr-1p2 |
| Severity | fatal |
Implementation
not(/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:InvoiceSubtypeCode = concat($VRBL-TR-Prefix, 'YOLCUBERABERFATURA'))
or
cac:BuyerCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID=concat($VRBL-TR-Prefix, 'PARTYTYPE')]='TAXFREE'