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

	</assert>
	<test>
		<assert>
			<description>Verify that document id is present for additional documents</description>
			<success>BR-52</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:AdditionalDocumentReference>
				<cbc:ID>Doc1</cbc:ID>
			</cac:AdditionalDocumentReference>
		</Invoice>
	</test>


	<test>
		<assert>
			<description>Trigger error when document ID is missing</description>
			<error>BR-52</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:AdditionalDocumentReference>
				<!-- <cbc:ID>Doc1</cbc:ID> -->
			</cac:AdditionalDocumentReference>

		</Invoice>
	</test>


</testSet>
