Rules / ALIGNED-IBRP-S-01
ALIGNED-IBRP-S-01 error
An Invoice that contains an Invoice line is "Standard rated" must contain in the VAT…
An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the VAT category code (ibt-151, ibt-95 or ibt-102) is "Standard rated" must contain in the VAT breakdown (ibg-23) at least one VAT category code (ibt-118) equal with "Standard rated".
Fails when this is false
((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'])) > 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) > 0) or ((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'])) = 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) = 0)The schematron test, verbatim. Context: /ubl:Invoice | /cn:CreditNote
Fix
Change the data so the statement above is true. Paste the invoice into the validator to see the exact element that fails.