<?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-46</scope>
	</assert>
	<test>
		<assert>
			<description>Verify each VAT breakdown has VAT category tax amount present</description>
			<success>BR-46</success>
		</assert>
		<CreditNote
			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:CreditNote-2">
			
			<cac:TaxTotal>
				<cac:TaxSubtotal>
					<cbc:TaxAmount currencyID="NOK">365.13</cbc:TaxAmount>
				</cac:TaxSubtotal>
			</cac:TaxTotal>
		</CreditNote>
	</test>
	<test>
		<assert>
			<description>Trigger error when VAT category tax amount is missing</description>
			<error>BR-46</error>
		</assert>
		<CreditNote
			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:CreditNote-2">
			<cac:TaxTotal>
				<cac:TaxSubtotal>
					<!-- <cbc:TaxAmount currencyID="NOK">365.13</cbc:TaxAmount> -->
				</cac:TaxSubtotal>
			</cac:TaxTotal>


		</CreditNote>
	</test>

</testSet>
