Rules
VRBL-INV-PL-B2B-3-122
Basic Info
| Rule | An Invoice must contain at most one Tax Subtotal where the Tax Subtotal Category Exemption Reason Code starts with "P_19" or at most one Seller Tax Party Tax Scheme Extension Exemption Reason Code. |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-pl-b2b-3p0 |
| Severity | fatal |
Implementation
count(
/ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal[starts-with(cac:TaxCategory/cbc:TaxExemptionReasonCode, concat($VRBL-PL-Prefix, 'P_19'))]
|
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:PartyTaxSchemeExtension/cbc:TaxExemptionReasonCode
) <= 1