<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed under European Union Public Licence (EUPL) version 1.2.

-->
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" configuration="tc434-ubl">
	<assert>
		<scope>BR-CO-04</scope>
	</assert>
	<test>
		<assert>
			<description>Verify that each invoice line has a VAT category code</description>
			<success>BR-CO-04</success>
		</assert>
		<Invoice
			xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
			xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
			xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
			<cac:InvoiceLine>
				<cac:Item>
					<cac:ClassifiedTaxCategory>
						<cbc:ID>S</cbc:ID>
						<cac:TaxScheme>
							<cbc:ID>VAT</cbc:ID>
						</cac:TaxScheme>
					</cac:ClassifiedTaxCategory>
				</cac:Item>
			</cac:InvoiceLine>
		</Invoice>
	</test>

	<test>
		<assert>
			<description>Trigger error if an invoice line does not have a VAT Category code</description>
			<error>BR-CO-04</error>
		</assert>
		<Invoice
			xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
			xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
			xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">

			<cac:InvoiceLine>
				<cac:Item>					
				<!--	<cac:ClassifiedTaxCategory>
						<cbc:ID>S</cbc:ID>
						<cac:TaxScheme>
							<cbc:ID>VAT</cbc:ID>
						</cac:TaxScheme>
					</cac:ClassifiedTaxCategory> -->
				</cac:Item>
			</cac:InvoiceLine>
		</Invoice>
	</test>
	<test>
		<assert>
			<description>Trigger error if an invoice line does not have a VAT Category code</description>
			<error>BR-CO-04</error>
		</assert>
		<Invoice
			xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
			xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
			xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
			
			<cac:InvoiceLine>
				<cac:Item>					
					<cac:ClassifiedTaxCategory>
						<!-- <cbc:ID>S</cbc:ID> -->
						<cac:TaxScheme>
							<cbc:ID>VAT</cbc:ID>
						</cac:TaxScheme>
						
					</cac:ClassifiedTaxCategory>
				</cac:Item>
			</cac:InvoiceLine>
		</Invoice>
	</test>

</testSet>
