<?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-53</scope>

	</assert>
	<test>
		<assert>
			<description>Verify that total VAT amount in accounting currency is provided, when
				credit note currency != VAT currency</description>
			<success>BR-53</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">
			<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
			<cbc:TaxCurrencyCode>NOK</cbc:TaxCurrencyCode>
			<cac:TaxTotal>
				<cbc:TaxAmount currencyID="EUR">100</cbc:TaxAmount>
			</cac:TaxTotal>
			<cac:TaxTotal>
				<cbc:TaxAmount currencyID="NOK">800</cbc:TaxAmount>
			</cac:TaxTotal>
		</CreditNote>
	</test>


	<test>
		<assert>
			<description>Trigger error when total VAT amount in accounting currency is missing, and
				credit note currency != VAT currency</description>
			<error>BR-53</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">
			<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
			<cbc:TaxCurrencyCode>NOK</cbc:TaxCurrencyCode>

			<cac:TaxTotal>
				<cbc:TaxAmount currencyID="EUR">1000</cbc:TaxAmount>
			</cac:TaxTotal>

		</CreditNote>
	</test>


</testSet>
