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

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

-->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
<!--     PEPPOL BIS Billing 3.0 - MINIMUM INVOICE (no VAT applies)                    -->
<!--     Reference - http://docs.peppol.eu/poacc/billing/3.0/                         -->
<!--                                                                                  -->
<!--     Note - The purpose is to illustrate a use case where the buyer, at time of   -->
<!--     ordering, pays a lumpsum in advance to the supplier to cover expenses        -->
<!--     for production set-up, to be balanced in a final invocie after delivery.     -->
<!--     - This instance shows the invoice for final settlement; VAT applies.         --> 
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->

<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">

	<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
	<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
	<cbc:ID>20180112</cbc:ID>
 	<cbc:IssueDate>2018-08-02</cbc:IssueDate>
 	<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode> 
	<cbc:Note>Final invoice</cbc:Note>
	<cbc:DocumentCurrencyCode>SEK</cbc:DocumentCurrencyCode>

	<cac:OrderReference>
		<cbc:ID>20180007</cbc:ID>
		<cbc:SalesOrderID>PRODSTAB/2018/EmPe</cbc:SalesOrderID>
	</cac:OrderReference>
	<cac:ProjectReference>
		<cbc:ID>MÅL 2020</cbc:ID>
	</cac:ProjectReference>

	<cac:AccountingSupplierParty>
		<cac:Party>
 			<cbc:EndpointID schemeID="0007">1234567890</cbc:EndpointID> 
			<cac:PostalAddress>
				<cbc:AdditionalStreetName>Box 789</cbc:AdditionalStreetName>
				<cbc:CityName>Stockholm</cbc:CityName>
				<cbc:PostalZone>12345</cbc:PostalZone>
				<cac:Country>
					<cbc:IdentificationCode>SE</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<!-- Seller's VAT number required: -->
			<cac:PartyTaxScheme>
				<cbc:CompanyID>SE123456789001</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>Godkänd för F-skatt</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>TAX</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
 			<cac:PartyLegalEntity>
				<cbc:RegistrationName>AB Intelligent Tooling</cbc:RegistrationName>
				<cbc:CompanyID>1234567890</cbc:CompanyID>
				<cbc:CompanyLegalForm>Säte: Stockholm</cbc:CompanyLegalForm>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingSupplierParty>

	<cac:AccountingCustomerParty>
		<cac:Party>
			<cbc:EndpointID schemeID="0007">9876543210</cbc:EndpointID>  
			<cac:PostalAddress>
				<cbc:StreetName>Fjordgatan 1</cbc:StreetName>
				<cbc:CityName>Kista</cbc:CityName>
				<cbc:PostalZone>16456</cbc:PostalZone>
				<cac:Country>
					<cbc:IdentificationCode>SE</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>Produktionsbolaget AB </cbc:RegistrationName>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingCustomerParty>

	<cac:PaymentTerms>
		<cbc:Note>30 dagar.</cbc:Note>
	</cac:PaymentTerms>

	<cac:TaxTotal>
		<!-- VAT on the whole cost for the suply:  -->
		<cbc:TaxAmount currencyID="SEK">95000</cbc:TaxAmount>
 		<cac:TaxSubtotal>
			<cbc:TaxableAmount currencyID="SEK">380000</cbc:TaxableAmount>
 			<cbc:TaxAmount currencyID="SEK">95000</cbc:TaxAmount>
			<cac:TaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>25</cbc:Percent>
 				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:TaxCategory>
 		</cac:TaxSubtotal>
	</cac:TaxTotal>

	<cac:LegalMonetaryTotal>
		<cbc:LineExtensionAmount currencyID="SEK">380000</cbc:LineExtensionAmount> 
		<cbc:TaxExclusiveAmount currencyID="SEK">380000</cbc:TaxExclusiveAmount> 
		<cbc:TaxInclusiveAmount currencyID="SEK">475000</cbc:TaxInclusiveAmount> 
		<!-- Advance payment is deducted:  -->
		<cbc:PrepaidAmount currencyID="SEK">400000</cbc:PrepaidAmount> 
		<cbc:PayableAmount currencyID="SEK">75000</cbc:PayableAmount>
	</cac:LegalMonetaryTotal> 

	<cac:InvoiceLine>
		<cbc:ID>1</cbc:ID>
		<cbc:InvoicedQuantity unitCode="C62">1</cbc:InvoicedQuantity> 
		<cbc:LineExtensionAmount currencyID="SEK">200000</cbc:LineExtensionAmount> 
		<cac:Item>
			<cbc:Name>Fast kostnad, enligt avtal</cbc:Name> 
			<cac:ClassifiedTaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>25</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID> 
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory> 
		</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SEK">200000</cbc:PriceAmount> 
		</cac:Price>
	</cac:InvoiceLine>

	<cac:InvoiceLine>
		<cbc:ID>2</cbc:ID>
		<cbc:InvoicedQuantity unitCode="C62">180</cbc:InvoicedQuantity> 
		<cbc:LineExtensionAmount currencyID="SEK">180000</cbc:LineExtensionAmount> 
		<cac:Item>
			<cbc:Name>Rörlig kostnad</cbc:Name> 
			<cac:ClassifiedTaxCategory>
				<cbc:ID>S</cbc:ID> 
				<cbc:Percent>25</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID> 
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory> 
		</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SEK">1000</cbc:PriceAmount> 
		</cac:Price>
	</cac:InvoiceLine>

</Invoice>
	
